[−][src]Struct actix::Addr
The address of an actor.
Methods
impl<A: Actor> Addr<A>
[src]
impl<A: Actor> Addr<A>
pub fn new(tx: AddressSender<A>) -> Addr<A> | [src] |
pub fn connected(&self) -> bool | [src] |
Returns whether the actor is still alive.
pub fn do_send<M>(&self, msg: M) where | [src] |
Sends a message unconditionally.
This method ignores actor's mailbox capacity, and silently fails if the mailbox is closed.
pub fn try_send<M>(&self, msg: M) -> Result<(), SendError<M>> where | [src] |
Tries to send a message.
This method fails if actor's mailbox is full or closed. This method registers the current task in the receiver's queue.
pub fn send<M>(&self, msg: M) -> Request<A, M> where | [src] |
Sends an asynchronous message and waits for a response.
The communication channel to the actor is bounded. If the
returned Future
object gets dropped, the message is
cancelled.
pub fn recipient<M: 'static>(self) -> Recipient<M> where | [src] |
Returns the Recipient
for a specific message type.
pub fn downgrade(&self) -> WeakAddr<A> | [src] |
Returns a downgraded WeakAddr
.
Trait Implementations
impl<A, M, B> MessageResponse<A, M> for Addr<B> where
A: Actor,
M: Message<Result = Addr<B>>,
B: Actor<Context = Context<B>>,
[src]
impl<A, M, B> MessageResponse<A, M> for Addr<B> where
A: Actor,
M: Message<Result = Addr<B>>,
B: Actor<Context = Context<B>>,
fn handle<R: ResponseChannel<M>>(self, _: &mut A::Context, tx: Option<R>) | [src] |
impl<A: Actor> Eq for Addr<A>
[src]
impl<A: Actor> Eq for Addr<A>
impl<A: Actor, M: Message + Send + 'static> Into<Recipient<M>> for Addr<A> where
A: Handler<M>,
M::Result: Send,
A::Context: ToEnvelope<A, M>,
[src]
impl<A: Actor, M: Message + Send + 'static> Into<Recipient<M>> for Addr<A> where
A: Handler<M>,
M::Result: Send,
A::Context: ToEnvelope<A, M>,
impl<A: Actor> PartialEq<Addr<A>> for Addr<A>
[src]
impl<A: Actor> PartialEq<Addr<A>> for Addr<A>
fn eq(&self, other: &Self) -> bool | [src] |
| 1.0.0 [src] |
This method tests for !=
.
impl<A: Actor> Clone for Addr<A>
[src]
impl<A: Actor> Clone for Addr<A>
fn clone(&self) -> Addr<A> | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl<A: Debug + Actor> Debug for Addr<A>
[src]
impl<A: Debug + Actor> Debug for Addr<A>
impl<A: Actor> Hash for Addr<A>
[src]
impl<A: Actor> Hash for Addr<A>
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |
impl<T> Erased for T
impl<T> Erased for T