pub enum SupervisionError {
ChildNotFound(ActorId),
BudgetExhausted,
FactoryFailed(String),
NotASupervisor,
}Expand description
Errors emitted by the supervision subsystem.
Variants§
ChildNotFound(ActorId)
The specified child was not found.
BudgetExhausted
The restart budget has been exhausted.
FactoryFailed(String)
The factory closure failed during a restart attempt.
NotASupervisor
The actor is not configured as a supervisor.
Trait Implementations§
Source§impl Clone for SupervisionError
impl Clone for SupervisionError
Source§fn clone(&self) -> SupervisionError
fn clone(&self) -> SupervisionError
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 Debug for SupervisionError
impl Debug for SupervisionError
Source§impl Display for SupervisionError
impl Display for SupervisionError
Source§impl Error for SupervisionError
impl Error for SupervisionError
1.30.0 · 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 From<SupervisionError> for ActorError
impl From<SupervisionError> for ActorError
Source§fn from(value: SupervisionError) -> Self
fn from(value: SupervisionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SupervisionError
impl RefUnwindSafe for SupervisionError
impl Send for SupervisionError
impl Sync for SupervisionError
impl Unpin for SupervisionError
impl UnsafeUnpin for SupervisionError
impl UnwindSafe for SupervisionError
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