[][src]Trait improv::Receive

pub trait Receive<M>: Actor where
    M: Message
{ #[must_use] fn receive<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        msg: M,
        cx: &'life1 mut Context<Self>
    ) -> Pin<Box<dyn Future<Output = <M as Message>::Response> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]fn receive<'life0, 'life1, 'async_trait>(
    &'life0 mut self,
    msg: M,
    cx: &'life1 mut Context<Self>
) -> Pin<Box<dyn Future<Output = <M as Message>::Response> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 

Loading content...

Implementors

Loading content...