[−][src]Trait meio::handlers::Consumer
Represents a capability to receive message from a Stream
.
Required methods
#[must_use]pub fn handle<'life0, 'life1, 'async_trait>(
&'life0 mut self,
item: T,
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,
item: T,
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,
The method called when the next item received from a Stream
.
Implementors
impl<T, I> Consumer<Result<I, <T as TryConsumer<I>>::Error>> for T where
T: TryConsumer<I>,
T::Error: Send,
I: Send + 'static,
[src]
T: TryConsumer<I>,
T::Error: Send,
I: Send + 'static,