Trait actix::Subscriber [] [src]

pub trait Subscriber<M: 'static> {
    fn send(&self, msg: M) -> Result<(), M>;
}

Subscriber trait describes ability of actor to receive one specific message

You can get subscriber with Address::subscriber() or SyncAddress::subscriber() methods. Both methods returns boxed trait object.

It is possible to use Clone::clone() method to get cloned subscriber.

Required Methods

Send buffered message

Implementors