pub struct EstablishedChild<C, Occurrence>{ /* private fields */ }Expand description
Both capabilities established by one committed named-child creation.
creation remains relative to the creating actor and selects its private
child binding together with the static occurrence. actor is the stronger
exact installed capability used by exact delivery, observation, or
ShutdownEstablished.
Implementations§
Source§impl<C, Occurrence> EstablishedChild<C, Occurrence>
impl<C, Occurrence> EstablishedChild<C, Occurrence>
Sourcepub const fn creation(&self) -> CreationId
pub const fn creation(&self) -> CreationId
Return the creator-local ID of this child.
Sourcepub fn actor(&self) -> EstablishedActor<C>
pub fn actor(&self) -> EstablishedActor<C>
Clone the exact installed-actor capability.
Sourcepub fn shutdown_target<Parent, Targets>(&self) -> Targetswhere
Parent: Behavior,
Occurrence: ChildRole<Parent, Child = C>,
Targets: ShutdownTargetAt<C, <Occurrence as ChildRole<Parent>>::Position>,
pub fn shutdown_target<Parent, Targets>(&self) -> Targetswhere
Parent: Behavior,
Occurrence: ChildRole<Parent, Child = C>,
Targets: ShutdownTargetAt<C, <Occurrence as ChildRole<Parent>>::Position>,
Select this child in an existing heterogeneous shutdown target sum.
Parent restores the namespace in which Occurrence was declared;
the compiler then selects the role’s exact structural position. No
role value, address reconstruction, or runtime protocol choice is
required after creation has committed.
Sourcepub fn into_parts(self) -> (CreationId, EstablishedActor<C>)
pub fn into_parts(self) -> (CreationId, EstablishedActor<C>)
Consume the product into its local and exact capabilities.
Auto Trait Implementations§
impl<C, Occurrence> Freeze for EstablishedChild<C, Occurrence>
impl<C, Occurrence> RefUnwindSafe for EstablishedChild<C, Occurrence>
impl<C, Occurrence> Send for EstablishedChild<C, Occurrence>
impl<C, Occurrence> Sync for EstablishedChild<C, Occurrence>
impl<C, Occurrence> Unpin for EstablishedChild<C, Occurrence>
impl<C, Occurrence> UnsafeUnpin for EstablishedChild<C, Occurrence>
impl<C, Occurrence> UnwindSafe for EstablishedChild<C, Occurrence>
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