pub enum SupervisorError<E, N> {
Behavior(E),
Fleet(FleetError<N>),
FactoryIndex {
index: usize,
},
}Expand description
A controlled supervisor-fold failure.
Variants§
Behavior(E)
The supervised behavior rejected its fold.
Fleet(FleetError<N>)
The supervisor’s child topology rejected the operation.
FactoryIndex
The configured worker factory did not define a requested fleet index.
Trait Implementations§
Source§impl<E: Clone, N: Clone> Clone for SupervisorError<E, N>
impl<E: Clone, N: Clone> Clone for SupervisorError<E, N>
Source§fn clone(&self) -> SupervisorError<E, N>
fn clone(&self) -> SupervisorError<E, N>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E, N> Display for SupervisorError<E, N>where
FleetError<N>: Display,
impl<E, N> Display for SupervisorError<E, N>where
FleetError<N>: Display,
impl<E: Eq, N: Eq> Eq for SupervisorError<E, N>
Source§impl<E, N> Error for SupervisorError<E, N>
impl<E, N> Error for SupervisorError<E, N>
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, N> From<FleetError<N>> for SupervisorError<E, N>
impl<E, N> From<FleetError<N>> for SupervisorError<E, N>
Source§fn from(source: FleetError<N>) -> Self
fn from(source: FleetError<N>) -> Self
Converts to this type from the input type.
impl<E: PartialEq, N: PartialEq> StructuralPartialEq for SupervisorError<E, N>
Auto Trait Implementations§
impl<E, N> Freeze for SupervisorError<E, N>
impl<E, N> RefUnwindSafe for SupervisorError<E, N>where
E: RefUnwindSafe,
N: RefUnwindSafe,
impl<E, N> Send for SupervisorError<E, N>
impl<E, N> Sync for SupervisorError<E, N>
impl<E, N> Unpin for SupervisorError<E, N>
impl<E, N> UnsafeUnpin for SupervisorError<E, N>where
E: UnsafeUnpin,
N: UnsafeUnpin,
impl<E, N> UnwindSafe for SupervisorError<E, N>where
E: UnwindSafe,
N: 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