pub enum SupervisorError {
ChildExists(String),
ChildNotFound(String),
MaxRestartsExceeded {
name: String,
count: u32,
max: u32,
},
SupervisorNotFound(ActorId),
InvalidState {
name: String,
state: String,
operation: String,
},
InvalidParent(ActorId),
}Expand description
Error type for supervisor operations.
Variants§
ChildExists(String)
Child with this name already exists.
ChildNotFound(String)
Child with this name not found.
MaxRestartsExceeded
Maximum restarts exceeded.
SupervisorNotFound(ActorId)
Supervisor not found.
InvalidState
Invalid operation for current state.
InvalidParent(ActorId)
Parent supervisor ID is invalid.
Trait Implementations§
Source§impl Clone for SupervisorError
impl Clone for SupervisorError
Source§impl Debug for SupervisorError
impl Debug for SupervisorError
Source§impl Display for SupervisorError
impl Display for SupervisorError
Source§impl From<SupervisorError> for Error
impl From<SupervisorError> for Error
Source§fn from(e: SupervisorError) -> Error
fn from(e: SupervisorError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SupervisorError
impl RefUnwindSafe for SupervisorError
impl Send for SupervisorError
impl Sync for SupervisorError
impl Unpin for SupervisorError
impl UnsafeUnpin for SupervisorError
impl UnwindSafe for SupervisorError
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