summaryrefslogtreecommitdiff
path: root/ci-lib-core/src/protocol.rs
diff options
context:
space:
mode:
authoriximeow <me@iximeow.net>2023-10-29 13:08:37 -0700
committeriximeow <me@iximeow.net>2023-10-29 13:14:32 -0700
commitdb4c638182d1c6b15bdc8d94f7baa691197e9a56 (patch)
tree8fb0ae2a00a0f1f2f3c9a2ce08f770da14acf15e /ci-lib-core/src/protocol.rs
parent6c5f395978b34e7b4626ea8605f0eca20ab730d8 (diff)
split runner into local/remote logic
ideally `trait Runner` describes whatever should have behavioral differences when a task is run locally vs in conjunction with a remote server. then everything consuming a `dyn Runner` will not need to change. if i've done it right.
Diffstat (limited to 'ci-lib-core/src/protocol.rs')
-rw-r--r--ci-lib-core/src/protocol.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ci-lib-core/src/protocol.rs b/ci-lib-core/src/protocol.rs
index c7a9318..c987c89 100644
--- a/ci-lib-core/src/protocol.rs
+++ b/ci-lib-core/src/protocol.rs
@@ -15,7 +15,7 @@ pub enum ClientProto {
Pong,
}
-#[derive(Serialize, Deserialize, Debug)]
+#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(tag = "command_info")]
#[serde(rename_all = "snake_case")]
pub enum CommandInfo {
@@ -23,7 +23,7 @@ pub enum CommandInfo {
Finished { exit_code: Option<i32>, id: u32 },
}
-#[derive(Serialize, Deserialize, Debug)]
+#[derive(Serialize, Deserialize, Debug, Clone)]
#[serde(tag = "task_info")]
#[serde(rename_all = "snake_case")]
pub enum TaskInfo {