Skip to main content

Children

Struct Children 

Source
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>

Source

pub const fn new() -> Self

Start an empty heterogeneous creation product.

Source§

impl<A: Address, Product> Children<A, Product>

Source

pub fn create<C>( self, creation: CreateChild<A, C>, ) -> Children<A, ChildCons<A, C, Product>>
where C: Behavior, C::Protocol: Protocol<Addr = A>,

Append one complete staged creation, preserving its provenance.

Source

pub fn child<C>( self, id: CreationId, child: C, ) -> Children<A, ChildCons<A, C, Product>>
where C: Behavior, C::Protocol: Protocol<Addr = A>,

Append one ordinary fresh-birth request.

Source§

impl<A, Product> Children<A, Product>
where A: Address, Product: ChildProduct<A>,

Source

pub fn into_creates(self) -> Creations<CreateChild<A, Product::Choice>>

Produce one ordered creation batch.

Trait Implementations§

Source§

impl<A: Address> Default for Children<A, NoChildren>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.