pub struct Delivery<P: Protocol> {
pub to: Recipient<P>,
pub message: P::Msg,
}Fields§
§to: Recipient<P>§message: P::MsgImplementations§
Trait Implementations§
Source§impl<P> ActionItem for Delivery<P>
impl<P> ActionItem for Delivery<P>
type Custody = (Option<Delivery<P>>, Option<<Delivery<P> as ActionItem>::Reply>)
type Input<'a> = &'a mut Option<Delivery<P>> where Self: 'a
type Reply = ItemSettlement<Delivery<P>, <Delivery<P> as ActionItem>::Accepted, <Delivery<P> as ActionItem>::Rejection, <Delivery<P> as ActionItem>::Prerequisite>
type Accepted = ()
type Rejection = LogicalDeliveryReason
type Prerequisite = Never
fn prepare_interpretation( progress: &mut Option<InterpretationProgress<Self, Self::Custody, Self::Reply>>, )
fn interpretation_input<'a>(
custody: &'a mut Self::Custody,
) -> Option<(Self::Input<'a>, &'a mut Option<Self::Reply>)>where
Self: 'a,
fn finish_interpretation( progress: &mut Option<InterpretationProgress<Self, Self::Custody, Self::Reply>>, )
impl<P> Eq for Delivery<P>
Auto Trait Implementations§
impl<P> Freeze for Delivery<P>
impl<P> RefUnwindSafe for Delivery<P>
impl<P> Send for Delivery<P>
impl<P> Sync for Delivery<P>
impl<P> Unpin for Delivery<P>
impl<P> UnsafeUnpin for Delivery<P>
impl<P> UnwindSafe for Delivery<P>
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