pub struct Children<A: Address, Product = NoChildren> { /* private fields */ }Expand description
A pure, ordered heterogeneous product of staged direct-child creations.
This value owns no mailbox, address, runtime actor, or lifecycle. Every product position is a distinct static child occurrence, so equal numeric IDs in different positions remain distinct correlations.
Implementations§
Source§impl<A: Address> Children<A, NoChildren>
impl<A: Address> Children<A, NoChildren>
Source§impl<A: Address, Product> Children<A, Product>
impl<A: Address, Product> Children<A, Product>
Sourcepub fn create<C>(
self,
creation: CreateChild<A, C>,
) -> Children<A, ChildCons<A, C, Product>>
pub fn create<C>( self, creation: CreateChild<A, C>, ) -> Children<A, ChildCons<A, C, Product>>
Append one complete staged creation, preserving its provenance.
Source§impl<A, Product> Children<A, Product>where
A: Address,
Product: ChildProduct<A>,
impl<A, Product> Children<A, Product>where
A: Address,
Product: ChildProduct<A>,
Sourcepub fn into_creates(self) -> Creations<CreateChild<A, Product::Choice>>
pub fn into_creates(self) -> Creations<CreateChild<A, Product::Choice>>
Produce one ordered creation batch.
Trait Implementations§
Auto Trait Implementations§
impl<A, Product> Freeze for Children<A, Product>where
Product: Freeze,
impl<A, Product> RefUnwindSafe for Children<A, Product>where
Product: RefUnwindSafe,
impl<A, Product> Send for Children<A, Product>where
Product: Send,
impl<A, Product> Sync for Children<A, Product>where
Product: Sync,
impl<A, Product> Unpin for Children<A, Product>where
Product: Unpin,
impl<A, Product> UnsafeUnpin for Children<A, Product>where
Product: UnsafeUnpin,
impl<A, Product> UnwindSafe for Children<A, Product>where
Product: UnwindSafe,
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