pub enum RestartError {
SigtermFailed {
pid: u32,
reason: String,
},
DidNotExit {
pid: u32,
secs: u64,
},
StatusMissingPid,
Client(ClientError),
}Expand description
Why a restart could not complete. Each variant names the pid where relevant
so the restart verb can fail loud (Locked Decision: a failed restart must
never read as success).
Variants§
Trait Implementations§
Source§impl Debug for RestartError
impl Debug for RestartError
Source§impl Display for RestartError
impl Display for RestartError
Source§impl Error for RestartError
impl Error for RestartError
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 From<ClientError> for RestartError
impl From<ClientError> for RestartError
Source§fn from(source: ClientError) -> Self
fn from(source: ClientError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RestartError
impl !UnwindSafe for RestartError
impl Freeze for RestartError
impl Send for RestartError
impl Sync for RestartError
impl Unpin for RestartError
impl UnsafeUnpin for RestartError
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