Skip to main content

ChildDelivery

Struct ChildDelivery 

Source
pub struct ChildDelivery<P, Occurrence>
where P: Protocol,
{ pub creation: CreationId, pub message: P::Msg, /* private fields */ }
Expand description

Same-action communication to one declared creator-local role.

The interpreter resolves this route only after all creations in the same crate::Actions have committed. A rejected or absent binding must produce a typed interpreter outcome; it can never be converted into a logical address by nonce arithmetic.

Fields§

§creation: CreationId§message: P::Msg

Implementations§

Source§

impl<P, Occurrence> ChildDelivery<P, Occurrence>
where P: Protocol,

Source

pub const fn after(creation: CreationId, message: P::Msg) -> Self

Trait Implementations§

Source§

impl<P, Occurrence> ActionItem for ChildDelivery<P, Occurrence>
where P: Protocol, P::Msg: Send,

Source§

type Custody = (Option<ChildDelivery<P, Occurrence>>, Option<<ChildDelivery<P, Occurrence> as ActionItem>::Reply>)

Source§

type Input<'a> = &'a mut Option<ChildDelivery<P, Occurrence>> where Self: 'a

Source§

type Reply = ItemSettlement<ChildDelivery<P, Occurrence>, <ChildDelivery<P, Occurrence> as ActionItem>::Accepted, <ChildDelivery<P, Occurrence> as ActionItem>::Rejection, <ChildDelivery<P, Occurrence> as ActionItem>::Prerequisite>

Source§

type Accepted = ()

Source§

type Rejection = ChildDeliveryReason

Source§

type Prerequisite = CreationCorrelation<P, 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<P, Occurrence> Clone for ChildDelivery<P, Occurrence>
where P: Protocol, P::Msg: 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<P, Occurrence> Freeze for ChildDelivery<P, Occurrence>
where <P as Protocol>::Msg: Freeze,

§

impl<P, Occurrence> RefUnwindSafe for ChildDelivery<P, Occurrence>
where <P as Protocol>::Msg: RefUnwindSafe,

§

impl<P, Occurrence> Send for ChildDelivery<P, Occurrence>
where <P as Protocol>::Msg: Send,

§

impl<P, Occurrence> Sync for ChildDelivery<P, Occurrence>
where <P as Protocol>::Msg: Sync,

§

impl<P, Occurrence> Unpin for ChildDelivery<P, Occurrence>
where <P as Protocol>::Msg: Unpin,

§

impl<P, Occurrence> UnsafeUnpin for ChildDelivery<P, Occurrence>
where <P as Protocol>::Msg: UnsafeUnpin,

§

impl<P, Occurrence> UnwindSafe for ChildDelivery<P, Occurrence>
where <P as Protocol>::Msg: 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.