pub trait WorkflowSink<Args>: BackendExt{
// Required method
fn push_step(
&mut self,
step: Args,
index: usize,
) -> impl Future<Output = Result<(), TaskSinkError<Self::Error>>> + Send;
// Provided method
fn push_start(
&mut self,
step: Args,
) -> impl Future<Output = Result<(), TaskSinkError<Self::Error>>> + Send { ... }
}Expand description
Extension trait for pushing tasks into a workflow
Required Methods§
Provided Methods§
Sourcefn push_start(
&mut self,
step: Args,
) -> impl Future<Output = Result<(), TaskSinkError<Self::Error>>> + Send
fn push_start( &mut self, step: Args, ) -> impl Future<Output = Result<(), TaskSinkError<Self::Error>>> + Send
Push a step into the workflow sink at the start
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.