pub enum ChildShutdownPlanError<E, A: Address> {
Behavior(E),
DuplicateCreation {
position: usize,
},
MissingCreation {
position: usize,
},
UnexpectedCreationResult {
position: usize,
expected: ChildCreationExpectation,
observed: CreationResolved<A>,
},
CreationRejected {
position: usize,
observed: CreationResolved<A>,
},
InvalidPlan(ShutdownPlanError<CreationId>),
ChildNotEstablished {
position: usize,
},
}Expand description
Failure while turning committed child creations into shutdown phases.
Variants§
Behavior(E)
The application rejected its own transition.
DuplicateCreation
More than one creation was emitted for a role that denotes one child.
MissingCreation
Initialization did not stage the child declared by this role.
UnexpectedCreationResult
A creation result did not match the request observed at this position.
CreationRejected
The interpreter rejected one required child creation.
InvalidPlan(ShutdownPlanError<CreationId>)
Committed child routes did not form a valid shutdown plan.
ChildNotEstablished
A plan declaration was evaluated before every required creation had committed. This variant is unreachable through the public fold and is retained to keep the plan-building operation total.
Trait Implementations§
Source§impl<E: Clone, A: Clone + Address> Clone for ChildShutdownPlanError<E, A>
impl<E: Clone, A: Clone + Address> Clone for ChildShutdownPlanError<E, A>
Source§fn clone(&self) -> ChildShutdownPlanError<E, A>
fn clone(&self) -> ChildShutdownPlanError<E, A>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E, A: Address> Display for ChildShutdownPlanError<E, A>
impl<E, A: Address> Display for ChildShutdownPlanError<E, A>
Source§impl<E, A: Address> Error for ChildShutdownPlanError<E, A>
impl<E, A: Address> Error for ChildShutdownPlanError<E, A>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<E: PartialEq, A: PartialEq + Address> PartialEq for ChildShutdownPlanError<E, A>
impl<E: PartialEq, A: PartialEq + Address> PartialEq for ChildShutdownPlanError<E, A>
Source§fn eq(&self, other: &ChildShutdownPlanError<E, A>) -> bool
fn eq(&self, other: &ChildShutdownPlanError<E, A>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<E: Eq, A: Eq + Address> Eq for ChildShutdownPlanError<E, A>
impl<E, A: Address> StructuralPartialEq for ChildShutdownPlanError<E, A>
Auto Trait Implementations§
impl<E, A> Freeze for ChildShutdownPlanError<E, A>
impl<E, A> RefUnwindSafe for ChildShutdownPlanError<E, A>where
E: RefUnwindSafe,
A: RefUnwindSafe,
impl<E, A> Send for ChildShutdownPlanError<E, A>
impl<E, A> Sync for ChildShutdownPlanError<E, A>
impl<E, A> Unpin for ChildShutdownPlanError<E, A>
impl<E, A> UnsafeUnpin for ChildShutdownPlanError<E, A>where
E: UnsafeUnpin,
A: UnsafeUnpin,
impl<E, A> UnwindSafe for ChildShutdownPlanError<E, A>where
E: UnwindSafe,
A: UnwindSafe,
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