pub enum StopRefusal {
NoPidFile {
path: PathBuf,
},
StaleIncarnation {
pid: u32,
recorded_started_at: u64,
live_started_at: u64,
live_exe: String,
path: PathBuf,
},
UnresolvedPatience {
pid: u32,
unresolved: String,
},
UnsupportedPlatform,
SignalFailed {
pid: u32,
message: String,
},
}Expand description
Why the stop refused to act. Each face is distinct and names its remedy.
Variants§
NoPidFile
No pid file exists under the home: no server has claimed it (or the running server predates the pid-file era).
StaleIncarnation
The file names a live pid whose start instant is not the recorded one: the pid was recycled. Nothing is signalled.
Fields
UnresolvedPatience
The server is verified RUNNING but no wait patience could be resolved
to govern the stop — no --patience, no usable recorded drain window,
and the configuration could not answer. Nothing is signalled:
signalling without a governed wait would leave the verb unable to
report what became of the drain.
Fields
UnsupportedPlatform
This build cannot send POSIX signals.
SignalFailed
The signal could not be sent to a verified-live process.
Trait Implementations§
Source§impl Clone for StopRefusal
impl Clone for StopRefusal
Source§fn clone(&self) -> StopRefusal
fn clone(&self) -> StopRefusal
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 StopRefusal
impl Debug for StopRefusal
Source§impl Display for StopRefusal
impl Display for StopRefusal
Source§impl Error for StopRefusal
impl Error for StopRefusal
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()
Auto Trait Implementations§
impl Freeze for StopRefusal
impl RefUnwindSafe for StopRefusal
impl Send for StopRefusal
impl Sync for StopRefusal
impl Unpin for StopRefusal
impl UnsafeUnpin for StopRefusal
impl UnwindSafe for StopRefusal
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.
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>
Wrap the input message
T in a tonic::Request