Trait actix::Subscriber
[−]
[src]
pub trait Subscriber<M: 'static> { fn send(&self, msg: M) -> Result<(), M>; fn subscriber(&self) -> Box<Subscriber<M>>; }
Required Methods
fn send(&self, msg: M) -> Result<(), M>
Send buffered message
fn subscriber(&self) -> Box<Subscriber<M>>
Clone subscriber
Implementors
impl<A, M> Subscriber<M> for Address<A> where
A: Actor + Handler<M>,
A::Context: AsyncContext<A>,
M: ResponseType + 'static,impl<A, M> Subscriber<M> for SyncAddress<A> where
A: Actor + Handler<M>,
<A as Actor>::Context: ToEnvelope<A>,
M: ResponseType + Send + 'static,
M::Item: Send,
M::Error: Send,