Trait flowrlib::protocols::SubmissionProtocol
source · pub trait SubmissionProtocol {
// Required methods
fn flow_execution_starting(&mut self) -> Result<()>;
fn flow_execution_ended(&mut self, state: &RunState) -> Result<()>;
fn wait_for_submission(&mut self) -> Result<Option<Submission>>;
fn coordinator_is_exiting(&mut self, result: Result<()>) -> Result<()>;
}
Expand description
Programs linking flowrlib
that wish to submit a flow for execution via a Submission
and
then track it’s execution (such as a CLI or a UI) should implement this trait.
Required Methods§
sourcefn flow_execution_starting(&mut self) -> Result<()>
fn flow_execution_starting(&mut self) -> Result<()>
Execution of the flow is starting
sourcefn flow_execution_ended(&mut self, state: &RunState) -> Result<()>
fn flow_execution_ended(&mut self, state: &RunState) -> Result<()>
The flow has ended
sourcefn wait_for_submission(&mut self) -> Result<Option<Submission>>
fn wait_for_submission(&mut self) -> Result<Option<Submission>>
Wait for a Submission
to be sent to the Coordinator
for execution