summaryrefslogtreecommitdiffstats
path: root/src/runner/runc/run.rs
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2021-02-05 20:15:11 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2021-02-05 20:15:11 +0100
commite78e29eae4a0cf2e3f46c6a117e1fe86219efe96 (patch)
tree29b4b4c2bbd47329d2c11b5ca7fbc7629401d662 /src/runner/runc/run.rs
parentda9fa7d1ad81528c60607f488f84155a3ecc3ee6 (diff)
downloadrebel-e78e29eae4a0cf2e3f46c6a117e1fe86219efe96.tar
rebel-e78e29eae4a0cf2e3f46c6a117e1fe86219efe96.zip
IPC setup
Diffstat (limited to 'src/runner/runc/run.rs')
-rw-r--r--src/runner/runc/run.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/runner/runc/run.rs b/src/runner/runc/run.rs
new file mode 100644
index 0000000..2d13330
--- /dev/null
+++ b/src/runner/runc/run.rs
@@ -0,0 +1,18 @@
+use std::io;
+
+use serde::{Deserialize, Serialize};
+
+use crate::types::*;
+#[derive(Debug, Deserialize, Serialize)]
+pub struct Error;
+
+impl From<Error> for io::Error {
+ fn from(_: Error) -> Self {
+ io::Error::new(io::ErrorKind::Other, "Failed to run task")
+ }
+}
+
+pub fn handle_task(task: TaskRef, task_def: Task) -> Result<(), Error> {
+ println!("{}:\n\t{:?}", task, task_def);
+ Ok(())
+}