pub enum SupervisorError {
Show 13 variants
InvalidConfiguration(String),
ServiceAlreadyRegistered(String),
ServiceNotFound(String),
DependencyNotFound {
service: String,
dependency: String,
},
DependencyCycle(Vec<String>),
DependencyUnavailable {
service: String,
dependency: String,
},
ServiceFailure {
service: String,
reason: String,
},
ShutdownTimeout(String),
ServiceOrphaned(String),
RestartBudgetExceeded(String),
RestartQueueFull,
RestartExecutorStopped,
StatePoisoned,
}Expand description
Controlled failure produced by service supervision.
Variants§
InvalidConfiguration(String)
A service name or policy is invalid.
ServiceAlreadyRegistered(String)
A service is already registered.
ServiceNotFound(String)
A requested service is absent.
DependencyNotFound
A declared dependency is absent.
DependencyCycle(Vec<String>)
The dependency graph contains a cycle.
A required dependency is not ready.
ServiceFailure
A managed service boundary failed.
ShutdownTimeout(String)
A service did not stop inside its configured deadline.
ServiceOrphaned(String)
A previous service instance still owns its resource.
RestartBudgetExceeded(String)
The temporal restart budget was exhausted.
RestartQueueFull
The bounded restart queue cannot accept more work.
RestartExecutorStopped
The restart executor is stopping or unavailable.
StatePoisoned
Shared supervisor state was poisoned.
Trait Implementations§
Source§impl Clone for SupervisorError
impl Clone for SupervisorError
Source§fn clone(&self) -> SupervisorError
fn clone(&self) -> SupervisorError
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 Debug for SupervisorError
impl Debug for SupervisorError
Source§impl Display for SupervisorError
impl Display for SupervisorError
impl Eq for SupervisorError
Source§impl Error for SupervisorError
impl Error for SupervisorError
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 PartialEq for SupervisorError
impl PartialEq for SupervisorError
impl StructuralPartialEq for SupervisorError
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