Struct actix::Addr[][src]

pub struct Addr<T: Destination<A>, A> { /* fields omitted */ }

Address of the actor

Methods

impl<T: Destination<A>, A> Addr<T, A>
[src]

Indicates if actor is still alive

Send message unconditionally

This method ignores actor's mailbox capacity, it silently fails if mailbox is closed.

Send asynchronous message and wait for response.

Communication channel to the actor is bounded. if returned Future object get dropped, message cancels.

Try to send message

This method fails if actor's mailbox is full or closed. This method register current task in receivers queue.

Get Recipient for specific message type

Trait Implementations

impl<A, M, B> MessageResponse<A, M> for Addr<Syn, B> where
    A: Actor,
    M: Message<Result = Addr<Syn, B>>,
    B: Actor<Context = Context<B>>, 
[src]

impl<A> ActorAddress<A, Addr<Unsync, A>> for A where
    A: Actor,
    A::Context: AsyncContext<A>, 
[src]

Returns actor's address for specific context

impl<A> ActorAddress<A, Addr<Syn, A>> for A where
    A: Actor,
    A::Context: AsyncContext<A>, 
[src]

Returns actor's address for specific context

impl<A: Actor> Send for Addr<Syn, A>
[src]

impl<A: Actor> Sync for Addr<Syn, A>
[src]

impl<T: Destination<A>, A> Clone for Addr<T, A>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<T, A> Send for Addr<T, A> where
    A: Send,
    <T as Destination<A>>::Transport: Send

impl<T, A> Sync for Addr<T, A> where
    A: Sync,
    <T as Destination<A>>::Transport: Sync