Struct actix::SyncAddress
[−]
[src]
pub struct SyncAddress<A> where
A: Actor, { /* fields omitted */ }
Send
address of the actor. Actor can run in differend thread
Methods
impl<A> SyncAddress<A> where
A: Actor,
[src]
A: Actor,
fn connected(&self) -> bool
[src]
Indicates if address is still connected to the actor.
fn send<M: 'static + Send>(&self, msg: M) where
A: Handler<M> + ResponseType<M>,
A::Item: Send,
A::Error: Send,
A: ToEnvelope<A, <A as Actor>::Context, M>,
[src]
A: Handler<M> + ResponseType<M>,
A::Item: Send,
A::Error: Send,
A: ToEnvelope<A, <A as Actor>::Context, M>,
Send message M
to actor A
. Message cold be sent to actor running in
different thread.
fn call<B: Actor, M: 'static + Send>(&self, _: &B, msg: M) -> Request<A, B, M> where
A: Handler<M>,
A::Item: Send,
A::Error: Send,
A: ToEnvelope<A, <A as Actor>::Context, M>,
[src]
A: Handler<M>,
A::Item: Send,
A::Error: Send,
A: ToEnvelope<A, <A as Actor>::Context, M>,
Send message to actor A
and asyncronously wait for response.
fn call_fut<M>(&self, msg: M) -> SyncReceiver<Result<A::Item, A::Error>> where
A: Handler<M>,
M: 'static,
A::Item: Send,
A::Error: Send,
A: ToEnvelope<A, <A as Actor>::Context, M>,
[src]
A: Handler<M>,
M: 'static,
A::Item: Send,
A::Error: Send,
A: ToEnvelope<A, <A as Actor>::Context, M>,
Send message to actor A
and asyncronously wait for response.
fn subscriber<M: 'static + Send>(&self) -> Box<Subscriber<M> + Send> where
A: Handler<M>,
A::Item: Send,
A::Error: Send,
A: ToEnvelope<A, <A as Actor>::Context, M>,
[src]
A: Handler<M>,
A::Item: Send,
A::Error: Send,
A: ToEnvelope<A, <A as Actor>::Context, M>,
Get Subscriber
for specific message type
Trait Implementations
impl<A> Send for SyncAddress<A> where
A: Actor,
[src]
A: Actor,
impl<A> Sync for SyncAddress<A> where
A: Actor,
[src]
A: Actor,
impl<A> Clone for SyncAddress<A> where
A: Actor,
[src]
A: Actor,
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<A, M> Subscriber<M> for SyncAddress<A> where
A: Actor + Handler<M>,
A::Item: Send,
A::Error: Send,
A: ToEnvelope<A, <A as Actor>::Context, M>,
M: Send + 'static,
[src]
A: Actor + Handler<M>,
A::Item: Send,
A::Error: Send,
A: ToEnvelope<A, <A as Actor>::Context, M>,
M: Send + 'static,