pub trait AsyncActivity<S: Send + 'static>: HybrydTask {
// Provided methods
fn perform<'life0, 'async_trait>(
&'life0 mut self,
state: S,
interruptor: Interruptor,
) -> Pin<Box<dyn Future<Output = Result<NextState<Self>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait { ... }
fn many<'life0, 'life1, 'async_trait>(
&'life0 mut self,
state: &'life1 mut S,
) -> Pin<Box<dyn Future<Output = Result<Option<NextState<Self>>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn once<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_state: &'life1 mut S,
) -> Pin<Box<dyn Future<Output = Result<NextState<Self>>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn repair<'life0, 'async_trait>(
&'life0 mut self,
err: Error,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait { ... }
fn fallback<'life0, 'async_trait>(
&'life0 mut self,
err: Error,
) -> Pin<Box<dyn Future<Output = NextState<Self>> + Send + 'async_trait>>
where Self: Send + 'async_trait,
'life0: 'async_trait { ... }
}Provided Methods§
fn perform<'life0, 'async_trait>(
&'life0 mut self,
state: S,
interruptor: Interruptor,
) -> Pin<Box<dyn Future<Output = Result<NextState<Self>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
fn many<'life0, 'life1, 'async_trait>(
&'life0 mut self,
state: &'life1 mut S,
) -> Pin<Box<dyn Future<Output = Result<Option<NextState<Self>>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn once<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_state: &'life1 mut S,
) -> Pin<Box<dyn Future<Output = Result<NextState<Self>>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn repair<'life0, 'async_trait>(
&'life0 mut self,
err: Error,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
fn fallback<'life0, 'async_trait>(
&'life0 mut self,
err: Error,
) -> Pin<Box<dyn Future<Output = NextState<Self>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
'life0: 'async_trait,
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.