pub trait StepGuardExt: StepGuard {
// Provided methods
fn success<'life0, 'life1, 'async_trait, T>(
&'life0 mut self,
output: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where T: 'async_trait + Serialize + Send + Sync,
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn fail<'life0, 'life1, 'async_trait, T>(
&'life0 mut self,
error: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where T: 'async_trait + Serialize + Send + Sync,
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}Expand description
Extension trait for StepGuard to provide generic convenience methods.
Provided Methods§
Sourcefn success<'life0, 'life1, 'async_trait, T>(
&'life0 mut self,
output: &'life1 T,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
fn success<'life0, 'life1, 'async_trait, T>( &'life0 mut self, output: &'life1 T, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
Complete the step successfully with a serializable output.
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.