pub struct Recipient<M> { /* private fields */ }Expand description
Similar to Addr, but rather than pointing to a specific actor,
it is typed for any actor that handles a given message-response type.
Implementations§
Trait Implementations§
Source§impl<M> RecipientExt<M> for Recipient<TimedMessage<M>>
impl<M> RecipientExt<M> for Recipient<TimedMessage<M>>
Source§fn send_now(&self, message: M) -> Result<(), SendError>
fn send_now(&self, message: M) -> Result<(), SendError>
Send a
message now. Convenience to wrap message in TimedMessage::Instant.Source§fn send_timed(&self, message: M, fire_at: Instant) -> Result<(), SendError>
fn send_timed(&self, message: M, fire_at: Instant) -> Result<(), SendError>
Send a
message to be delivered later at a certain instant.Auto Trait Implementations§
impl<M> Freeze for Recipient<M>
impl<M> !RefUnwindSafe for Recipient<M>
impl<M> Send for Recipient<M>
impl<M> Sync for Recipient<M>
impl<M> Unpin for Recipient<M>
impl<M> !UnwindSafe for Recipient<M>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more