pub struct ChildRoute<Child: Behavior, Role> { /* private fields */ }Expand description
A named creator-local route for one statically declared child role.
The route carries routing intent only. Its nonce is not an actor identity,
proof of freshness, or evidence that creation succeeded. Child fixes the
exact behavior accepted by ChildRoute::birth, while Role keeps two
declarations of the same child behavior nominally distinct.
Implementations§
Source§impl<Child: Behavior, Role> ChildRoute<Child, Role>
impl<Child: Behavior, Role> ChildRoute<Child, Role>
Sourcepub const fn new(
nonce: <<Child::Protocol as Protocol>::Addr as Address>::Nonce,
) -> Self
pub const fn new( nonce: <<Child::Protocol as Protocol>::Addr as Address>::Nonce, ) -> Self
Name this declared role at a creator-local route.
Sourcepub const fn recipient(self) -> ChildRecipient<Child::Protocol>
pub const fn recipient(self) -> ChildRecipient<Child::Protocol>
Return the creator-local recipient for this declared child role.
Sourcepub const fn nonce(
self,
) -> <<Child::Protocol as Protocol>::Addr as Address>::Nonce
pub const fn nonce( self, ) -> <<Child::Protocol as Protocol>::Addr as Address>::Nonce
Return the creator-local nonce used by creation and lifecycle facts.
Sourcepub const fn stage(
self,
child: Child,
kind: CreationKind<<<Child::Protocol as Protocol>::Addr as Address>::Nonce>,
) -> Create<<Child::Protocol as Protocol>::Addr, Child>
pub const fn stage( self, child: Child, kind: CreationKind<<<Child::Protocol as Protocol>::Addr as Address>::Nonce>, ) -> Create<<Child::Protocol as Protocol>::Addr, Child>
Stage one creation request with explicit Behavior-owned provenance.
Trait Implementations§
Source§impl<Child: Behavior, Role> Clone for ChildRoute<Child, Role>
impl<Child: Behavior, Role> Clone for ChildRoute<Child, Role>
impl<Child: Behavior, Role> Copy for ChildRoute<Child, Role>
Source§impl<Child: Behavior, Role> Debug for ChildRoute<Child, Role>
impl<Child: Behavior, Role> Debug for ChildRoute<Child, Role>
impl<Child: Behavior, Role> Eq for ChildRoute<Child, Role>
Auto Trait Implementations§
impl<Child, Role> Freeze for ChildRoute<Child, Role>
impl<Child, Role> RefUnwindSafe for ChildRoute<Child, Role>
impl<Child, Role> Send for ChildRoute<Child, Role>
impl<Child, Role> Sync for ChildRoute<Child, Role>
impl<Child, Role> Unpin for ChildRoute<Child, Role>
impl<Child, Role> UnsafeUnpin for ChildRoute<Child, Role>
impl<Child, Role> UnwindSafe for ChildRoute<Child, Role>
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