pub struct Recipient<M> { /* private fields */ }Expand description
A version of ActorRef that automatically converts M into some M'
as specified by the actor that created the Recipient from its own ActorRef.
This can be used to expose only a subset of an actor’s interface to another actor.
§Note
The indirection provided by this Recipient has some performance impact.
Use benchmarking to establish whether or not the better encapsulation is worth
the performance loss in your scenario.
Implementations§
Trait Implementations§
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> UnsafeUnpin 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