Skip to main content

ChildInput

Struct ChildInput 

Source
pub struct ChildInput<Child, Source, Input, Occurrence>
where Child: Behavior,
{ pub creation: CreationId, pub input: Input, /* private fields */ }
Expand description

Private typed communication to one declared creator-local child role.

ChildDelivery addresses the child’s public protocol. ChildInput instead selects one owner-defined member of the concrete child’s event algebra through Source. This is the static boundary used for lifecycle coordination between an owner and a composed child: it retains the exact child behavior, occurrence, input, and ingress owner without exposing the input through the child’s public protocol or performing a runtime lookup.

This is a derived Bombay communication form. Like ChildDelivery, its creator-local route is interpreted only after same-action creations have committed; constructing it performs no delivery.

Fields§

§creation: CreationId

Creator-local creation ID of the concrete child receiving the input.

§input: Input

Complete private input transferred to the child.

Implementations§

Source§

impl<Child, Source, Input, Occurrence> ChildInput<Child, Source, Input, Occurrence>
where Child: Behavior, Child::Event: ChildInputIngress<Source, Input>,

Source

pub const fn after(creation: CreationId, input: Input) -> Self

Construct a private input for one exact creator-local child creation.

Trait Implementations§

Source§

impl<Child, Source, Input, Occurrence> ActionItem for ChildInput<Child, Source, Input, Occurrence>
where Child: Behavior, Input: Send,

Source§

type Custody = (Option<ChildInput<Child, Source, Input, Occurrence>>, Option<<ChildInput<Child, Source, Input, Occurrence> as ActionItem>::Reply>)

Source§

type Input<'a> = &'a mut Option<ChildInput<Child, Source, Input, Occurrence>> where Self: 'a

Source§

type Reply = ItemSettlement<ChildInput<Child, Source, Input, Occurrence>, <ChildInput<Child, Source, Input, Occurrence> as ActionItem>::Accepted, <ChildInput<Child, Source, Input, Occurrence> as ActionItem>::Rejection, <ChildInput<Child, Source, Input, Occurrence> as ActionItem>::Prerequisite>

Source§

type Accepted = ()

Source§

type Rejection = ChildInputReason

Source§

type Prerequisite = CreationCorrelation<<Child as Behavior>::Protocol, Occurrence>

Source§

fn prepare_interpretation( progress: &mut Option<InterpretationProgress<Self, Self::Custody, Self::Reply>>, )

Source§

fn interpretation_input<'a>( custody: &'a mut Self::Custody, ) -> Option<(Self::Input<'a>, &'a mut Option<Self::Reply>)>
where Self: 'a,

Source§

fn finish_interpretation( progress: &mut Option<InterpretationProgress<Self, Self::Custody, Self::Reply>>, )

Source§

fn retain_accepted(_: Self::Accepted) -> Option<Self::Accepted>

Keep an accepted value only while it still carries terminal custody. Read more
Source§

impl<Child, Source, Input, Occurrence> Clone for ChildInput<Child, Source, Input, Occurrence>
where Child: Behavior, Input: Clone,

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

§

impl<Child, Source, Input, Occurrence> Freeze for ChildInput<Child, Source, Input, Occurrence>
where Input: Freeze,

§

impl<Child, Source, Input, Occurrence> RefUnwindSafe for ChildInput<Child, Source, Input, Occurrence>
where Input: RefUnwindSafe,

§

impl<Child, Source, Input, Occurrence> Send for ChildInput<Child, Source, Input, Occurrence>
where Input: Send,

§

impl<Child, Source, Input, Occurrence> Sync for ChildInput<Child, Source, Input, Occurrence>
where Input: Sync,

§

impl<Child, Source, Input, Occurrence> Unpin for ChildInput<Child, Source, Input, Occurrence>
where Input: Unpin,

§

impl<Child, Source, Input, Occurrence> UnsafeUnpin for ChildInput<Child, Source, Input, Occurrence>
where Input: UnsafeUnpin,

§

impl<Child, Source, Input, Occurrence> UnwindSafe for ChildInput<Child, Source, Input, Occurrence>
where Input: 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.