pub enum ShutdownCoordinatorError<E, A: Address, P> {
Behavior(E),
ChildRejected {
child: CreationId,
reason: ChildShutdownRejection,
},
UnexpectedChildStopped(ChildStopped<A>),
UnexpectedChildRejection {
child: CreationId,
reason: ChildShutdownRejection,
},
PlanAlreadyInstalled(P),
}Expand description
Controlled coordinated-shutdown failure.
Variants§
Behavior(E)
ChildRejected
UnexpectedChildStopped(ChildStopped<A>)
A child-stop fact did not name a child awaited by the current phase.
UnexpectedChildRejection
A child-shutdown rejection did not name a child awaited by the current phase.
PlanAlreadyInstalled(P)
A plan was supplied after one had already been installed or completed.
Trait Implementations§
Source§impl<E: Clone, A: Clone + Address, P: Clone> Clone for ShutdownCoordinatorError<E, A, P>
impl<E: Clone, A: Clone + Address, P: Clone> Clone for ShutdownCoordinatorError<E, A, P>
Source§fn clone(&self) -> ShutdownCoordinatorError<E, A, P>
fn clone(&self) -> ShutdownCoordinatorError<E, A, P>
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, P> Display for ShutdownCoordinatorError<E, A, P>
impl<E, A: Address, P> Display for ShutdownCoordinatorError<E, A, P>
Source§impl<E, A: Address, P> Error for ShutdownCoordinatorError<E, A, P>
impl<E, A: Address, P> Error for ShutdownCoordinatorError<E, A, P>
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, P: PartialEq> PartialEq for ShutdownCoordinatorError<E, A, P>
impl<E: PartialEq, A: PartialEq + Address, P: PartialEq> PartialEq for ShutdownCoordinatorError<E, A, P>
Source§fn eq(&self, other: &ShutdownCoordinatorError<E, A, P>) -> bool
fn eq(&self, other: &ShutdownCoordinatorError<E, A, P>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<E: Eq, A: Eq + Address, P: Eq> Eq for ShutdownCoordinatorError<E, A, P>
impl<E, A: Address, P> StructuralPartialEq for ShutdownCoordinatorError<E, A, P>
Auto Trait Implementations§
impl<E, A, P> Freeze for ShutdownCoordinatorError<E, A, P>
impl<E, A, P> RefUnwindSafe for ShutdownCoordinatorError<E, A, P>
impl<E, A, P> Send for ShutdownCoordinatorError<E, A, P>
impl<E, A, P> Sync for ShutdownCoordinatorError<E, A, P>
impl<E, A, P> Unpin for ShutdownCoordinatorError<E, A, P>
impl<E, A, P> UnsafeUnpin for ShutdownCoordinatorError<E, A, P>
impl<E, A, P> UnwindSafe for ShutdownCoordinatorError<E, A, 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