Skip to main content

ReportShutdownPlan

Struct ReportShutdownPlan 

Source
pub struct ReportShutdownPlan<P> { /* private fields */ }
Expand description

Interpreter request reporting one validated plan to its owning coordinator.

The request owns the plan. Interpretation enqueues one ordinary event for the same actor incarnation through its source-indexed EventIngress.

Implementations§

Source§

impl<P> ReportShutdownPlan<P>

Source

pub fn new(plan: P) -> Self

Source

pub const fn plan(&self) -> &P

Borrow the complete validated plan without changing the request.

Source

pub fn into_event<Event>(self) -> Event

Build the exact root event selected for the current actor source.

Trait Implementations§

Source§

impl<P: Send> ActionItem for ReportShutdownPlan<P>

Source§

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

Source§

type Input<'a> = &'a mut Option<ReportShutdownPlan<P>> where Self: 'a

Source§

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

Source§

type Accepted = ()

Source§

type Rejection = Never

Source§

type Prerequisite = Never

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: Debug> Debug for ReportShutdownPlan<P>

Source§

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<P> InterpreterRequest for ReportShutdownPlan<P>

Source§

impl<P: PartialEq> PartialEq for ReportShutdownPlan<P>

Source§

fn eq(&self, other: &Self) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<P: Eq> Eq for ReportShutdownPlan<P>

Auto Trait Implementations§

§

impl<P> Freeze for ReportShutdownPlan<P>
where P: Freeze,

§

impl<P> RefUnwindSafe for ReportShutdownPlan<P>
where P: RefUnwindSafe,

§

impl<P> Send for ReportShutdownPlan<P>
where P: Send,

§

impl<P> Sync for ReportShutdownPlan<P>
where P: Sync,

§

impl<P> Unpin for ReportShutdownPlan<P>
where P: Unpin,

§

impl<P> UnsafeUnpin for ReportShutdownPlan<P>
where P: UnsafeUnpin,

§

impl<P> UnwindSafe for ReportShutdownPlan<P>
where P: 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.