Trait meio::handlers::TaskEliminated [−][src]
Listens for spawned tasks finished.
Required methods
#[must_use]fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
id: IdOf<T>,
result: Result<T::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,
[src]
&'life0 mut self,
id: IdOf<T>,
result: Result<T::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.
Implementors
impl<T> TaskEliminated<HeartBeat> for T where
T: OnTick,
[src]
T: OnTick,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_id: IdOf<HeartBeat>,
_result: Result<(), 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,
[src]
&'life0 mut self,
_id: IdOf<HeartBeat>,
_result: Result<(), 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,
impl<T, I> TaskEliminated<InteractionTask<I>> for T where
T: InteractionDone<I>,
I: Interaction,
[src]
T: InteractionDone<I>,
I: Interaction,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
_id: IdOf<InteractionTask<I>>,
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,
[src]
&'life0 mut self,
_id: IdOf<InteractionTask<I>>,
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,