Struct tonari_actor::Addr
source · [−]Implementations
Methods from Deref<Target = Recipient<M>>
sourcepub fn recipient<N: Into<M>>(&self) -> Recipient<N>
pub fn recipient<N: Into<M>>(&self) -> Recipient<N>
Convert a Recipient<M> (or Addr<A> through Deref, where A::Message = M) into
Recipient<N>, where message N can be converted into M.
In case of converting from Addr, this erases the type of the actor and only preserves
type of the message, allowing you to make actors more independent of each other.
Trait Implementations
Auto Trait Implementations
impl<A> !RefUnwindSafe for Addr<A>
impl<A: ?Sized> Send for Addr<A>
impl<A: ?Sized> Sync for Addr<A>
impl<A: ?Sized> Unpin for Addr<A>
impl<A> !UnwindSafe for Addr<A>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more