pub enum SystemCtlError {
Io(Error),
Failed {
reason: String,
},
EnableTimeOut,
DisableTimeOut,
StopTimeOut,
Terminated,
}Variants§
Trait Implementations§
Source§impl Debug for SystemCtlError
impl Debug for SystemCtlError
Source§impl Display for SystemCtlError
impl Display for SystemCtlError
Source§impl Error for SystemCtlError
impl Error for SystemCtlError
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<Error> for SystemCtlError
impl From<Error> for SystemCtlError
Source§impl From<SystemCtlError> for Error
impl From<SystemCtlError> for Error
Source§fn from(source: SystemCtlError) -> Self
fn from(source: SystemCtlError) -> Self
Converts to this type from the input type.
Source§impl From<SystemCtlError> for RollbackError
impl From<SystemCtlError> for RollbackError
Source§fn from(source: SystemCtlError) -> Self
fn from(source: SystemCtlError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SystemCtlError
impl !RefUnwindSafe for SystemCtlError
impl Send for SystemCtlError
impl Sync for SystemCtlError
impl Unpin for SystemCtlError
impl !UnwindSafe for SystemCtlError
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