pub enum SupervisionError {
NotCommissioned,
UnknownDeployment {
name: String,
},
Store {
source: StoreError,
},
ExecutableUnresolved {
detail: String,
},
ExecutableUnreadable {
path: String,
detail: String,
},
Process {
name: String,
source: ProcessGroupError,
},
StopIncomplete {
name: String,
detail: String,
},
TaskLost {
name: String,
detail: String,
},
StatePoisoned {
detail: String,
},
}Expand description
A managed-worker lifecycle operation that could not be carried out.
Variants§
NotCommissioned
No supervision policy is configured, so nothing may be started.
UnknownDeployment
The named deployment does not exist.
Store
The durable deployment store refused or failed.
Fields
source: StoreErrorUnderlying store failure.
ExecutableUnresolved
This server’s own executable could not be identified.
ExecutableUnreadable
The executable bytes could not be read for identity capture.
Process
The contained child could not be spawned or observed.
Fields
source: ProcessGroupErrorUnderlying containment failure.
StopIncomplete
A stop was asked for and could not be PROVEN complete.
This exists so that “stopped” is never reported on the strength of
bookkeeping: the only path to a Stopped status runs through a process
group that a signal-zero probe found empty, and every other outcome
arrives here instead.
Fields
TaskLost
A supervision task ended abnormally (panicked or was aborted).
StatePoisoned
A supervisor lock was poisoned by a panicking holder.
Implementations§
Trait Implementations§
Source§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
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for SupervisionError
impl !UnwindSafe for SupervisionError
impl Freeze for SupervisionError
impl Send for SupervisionError
impl Sync for SupervisionError
impl Unpin for SupervisionError
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request