pub struct Recipient<B: Behavior> { /* private fields */ }Expand description
Pure routing intent for one concrete destination behavior protocol.
The destination behavior is part of the type even when two protocols share the same address namespace and message type. The value contains no mailbox, endpoint, registry entry, or other interpreter-owned capability.
Implementations§
Source§impl<B: Behavior> Recipient<B>
impl<B: Behavior> Recipient<B>
pub fn global(address: B::Addr) -> Self
pub fn child(nonce: <B::Addr as Address>::Nonce) -> Self
Sourcepub fn resolve(self, parent: B::Addr) -> B::Addr
pub fn resolve(self, parent: B::Addr) -> B::Addr
Resolve this intent in the address namespace of the sending actor.
Global recipients ignore parent; child recipients derive their
address from it. The route representation remains private so runtimes
cannot couple endpoint tables to Behaviorpass internals.
Trait Implementations§
impl<B: Behavior> Copy for Recipient<B>
impl<B: Behavior> Eq for Recipient<B>
Auto Trait Implementations§
impl<B> Freeze for Recipient<B>
impl<B> RefUnwindSafe for Recipient<B>where
<B as Behavior>::Addr: RefUnwindSafe,
<<B as Behavior>::Addr as Address>::Nonce: RefUnwindSafe,
impl<B> Send for Recipient<B>
impl<B> Sync for Recipient<B>
impl<B> Unpin for Recipient<B>
impl<B> UnsafeUnpin for Recipient<B>
impl<B> UnwindSafe for Recipient<B>
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