Struct meio::handlers::InteractionTask [−][src]
Interaction task that can be awaited or aattached to a Context
.
Implementations
impl<I: Interaction> InteractionTask<I>
[src]
Trait Implementations
impl<I> LiteTask for InteractionTask<I> where
I: Interaction,
[src]
I: Interaction,
type Output = I::Output
The result of a finished task.
fn interruptable_routine<'async_trait>(
self
) -> Pin<Box<dyn Future<Output = Result<Self::Output, Error>> + Send + 'async_trait>> where
Self: 'async_trait,
[src]
self
) -> Pin<Box<dyn Future<Output = Result<Self::Output, Error>> + Send + 'async_trait>> where
Self: 'async_trait,
fn name(&self) -> String
[src]
#[must_use]fn routine<'async_trait>(
self,
stop: StopReceiver
) -> Pin<Box<dyn Future<Output = Result<Self::Output, Error>> + Send + 'async_trait>> where
Self: 'async_trait,
[src]
self,
stop: StopReceiver
) -> Pin<Box<dyn Future<Output = Result<Self::Output, Error>> + Send + 'async_trait>> where
Self: 'async_trait,
#[must_use]fn repeatable_routine<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Option<Self::Output>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Option<Self::Output>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn retry_at(&self, _last_attempt: Instant) -> Instant
[src]
fn retry_delay(&self, _last_attempt: Instant) -> Duration
[src]
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,
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,
I: Unpin,
impl<I> !UnwindSafe for InteractionTask<I>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,