summaryrefslogtreecommitdiffstats
path: root/mqtt-tester
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2023-01-09 09:22:19 +0100
committerMatthias Beyer <mail@beyermatthias.de>2023-01-11 09:01:48 +0100
commite8ef89b9430c36cf415351a7d5836d7f22b34721 (patch)
treea38fa2d9ad580c593f600087327b8db3a1d2d717 /mqtt-tester
parent6fa1593ba976f2bb2b5caa38ea658095e02cf3e7 (diff)
Let Flow interface take input and output of Command seperately
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'mqtt-tester')
-rw-r--r--mqtt-tester/src/flow.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/mqtt-tester/src/flow.rs b/mqtt-tester/src/flow.rs
index 83c3a06..9ed3ba2 100644
--- a/mqtt-tester/src/flow.rs
+++ b/mqtt-tester/src/flow.rs
@@ -12,10 +12,8 @@ use crate::{
#[async_trait::async_trait]
pub trait Flow {
fn commands(&self) -> Vec<Box<dyn ClientExecutableCommand>>;
- async fn execute(
- &self,
- command: crate::command::Command,
- ) -> Result<std::process::Output, miette::Error>;
+
+ async fn execute(&self, mut input: Input, mut output: Output) -> Result<(), miette::Error>;
}
pub struct WaitForConnectFlow;