Struct meio::handlers::InteractionTask [−][src]
pub struct InteractionTask<I: Interaction> { /* fields omitted */ }
Expand description
Interaction task that can be awaited or aattached to a Context
.
Implementations
Trait Implementations
Routine that can be unconditionally interrupted.
Routine of the task that can contain loops. It can taks into accout provided receiver to implement graceful interruption. Read more
Called before repeatable_routine
for initialization.
The routine will be interrupted if this method failed. Read more
Routine that will be repeated till fail or success. Read more
When to do the next attempt for repeatable_routine
. Read more
impl<T, I, M> TaskEliminated<InteractionTask<I>, M> for T where
T: InteractionDone<I, M>,
I: Interaction,
M: Tag,
impl<T, I, M> TaskEliminated<InteractionTask<I>, M> for T where
T: InteractionDone<I, M>,
I: Interaction,
M: Tag,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_id: IdOf<InteractionTask<I>>,
tag: M,
result: Result<I::Output, TaskError>,
ctx: &'life1 mut Context<Self>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_id: IdOf<InteractionTask<I>>,
tag: M,
result: Result<I::Output, TaskError>,
ctx: &'life1 mut Context<Self>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Called when the Task
finished.
Auto Trait Implementations
impl<I> !RefUnwindSafe for InteractionTask<I>
impl<I> Send for InteractionTask<I>
impl<I> !Sync for InteractionTask<I>
impl<I> Unpin for InteractionTask<I> where
I: Unpin,
impl<I> !UnwindSafe for InteractionTask<I>