Trait acto::Receiver

source ·
pub trait Receiver<M>: Send + 'static {
    // Required method
    fn poll(&mut self, cx: &mut Context<'_>) -> Poll<M>;
}
Expand description

A named closure for receiving messages at a given actor.

This type is used between a runtime implementation and acto.

Required Methods§

source

fn poll(&mut self, cx: &mut Context<'_>) -> Poll<M>

Implementors§