Skip to main content

Receiver

Trait Receiver 

Source
pub trait Receiver<T> {
    // Required method
    fn recipient(&self) -> Recipient<T>;
}
Expand description

A factory trait for recipients

This trait is blanket implemented for all ActorRefFactory implementations where the message type is From<T>.

Required Methods§

Source

fn recipient(&self) -> Recipient<T>

Produce a recipient for T

Implementors§

Source§

impl<M, T, A> Receiver<T> for A
where T: Debug + 'static, M: From<T> + MessageBounds, A: ActorRefFactory<Message = M>,

Source§

impl<T> Receiver<T> for Recipient<T>