[−][src]Struct actix::Recipient
The Recipient
type allows to send one specific message to an
actor.
You can get a recipient using the Addr::recipient()
method. It
is possible to use the Clone::clone()
method to get a cloned
recipient.
Methods
impl<M> Recipient<M> where
M: Message + Send,
M::Result: Send,
[src]
impl<M> Recipient<M> where
M: Message + Send,
M::Result: Send,
pub fn do_send(&self, msg: M) -> Result<(), SendError<M>> | [src] |
Sends a message.
Deliver the message even if the recipient's mailbox is full.
pub fn try_send(&self, msg: M) -> Result<(), SendError<M>> | [src] |
Attempts to send a message.
This method fails if the actor's mailbox is full or closed. This method registers the current task in the receivers queue.
pub fn send(&self, msg: M) -> RecipientRequest<M> | [src] |
Sends a message and asynchronously wait for a response.
The communication channel to the actor is bounded. If the
returned Request
object gets dropped, the message is
cancelled.
Trait Implementations
impl<M> Eq for Recipient<M> where
M: Message + Send,
M::Result: Send,
[src]
impl<M> Eq for Recipient<M> where
M: Message + Send,
M::Result: Send,
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<M> PartialEq<Recipient<M>> for Recipient<M> where
M: Message + Send,
M::Result: Send,
[src]
impl<M> PartialEq<Recipient<M>> for Recipient<M> where
M: Message + Send,
M::Result: Send,
fn eq(&self, other: &Self) -> bool | [src] |
| 1.0.0 [src] |
This method tests for !=
.
impl<M> Clone for Recipient<M> where
M: Message + Send,
M::Result: Send,
[src]
impl<M> Clone for Recipient<M> where
M: Message + Send,
M::Result: Send,
fn clone(&self) -> Recipient<M> | [src] |
fn clone_from(&mut self, source: &Self) | 1.0.0 [src] |
Performs copy-assignment from source
. Read more
impl<M> Hash for Recipient<M> where
M: Message + Send,
M::Result: Send,
[src]
impl<M> Hash for Recipient<M> where
M: Message + Send,
M::Result: Send,
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