#[non_exhaustive]pub enum IncumbentError {
NotIncumbent {
pid: u32,
},
NoIdentity {
pid: u32,
},
OwnProcess,
Survived {
pid: u32,
},
Io(Error),
}Expand description
Why the incumbent was not replaced. Nothing was signalled for NotIncumbent, NoIdentity
and OwnProcess.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NotIncumbent
The pid is alive but is not the recorded process (a recycled pid): never signalled.
NoIdentity
The record carries no process start time, so no signal may be sent; the incumbent was asked and did not stop within the grace.
OwnProcess
The record names this process.
Survived
The incumbent is still running after the forced stop.
Io(Error)
The OS refused a query or a signal.
Trait Implementations§
Source§impl Debug for IncumbentError
impl Debug for IncumbentError
Source§impl Display for IncumbentError
impl Display for IncumbentError
Source§impl Error for IncumbentError
impl Error for IncumbentError
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 !RefUnwindSafe for IncumbentError
impl !UnwindSafe for IncumbentError
impl Freeze for IncumbentError
impl Send for IncumbentError
impl Sync for IncumbentError
impl Unpin for IncumbentError
impl UnsafeUnpin for IncumbentError
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