pub enum StartStopError {
NoSystemCtl,
SystemCtlFailed,
}Expand description
Errors that can occur when interfacing with systemctl
Variants§
NoSystemCtl
Systemctl does not exist or is not callable for some reason
SystemCtlFailed
The systemctl command returned an error
Trait Implementations§
Source§impl Debug for StartStopError
impl Debug for StartStopError
Source§impl From<StartStopError> for CreateError
impl From<StartStopError> for CreateError
Source§fn from(value: StartStopError) -> Self
fn from(value: StartStopError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StartStopError
impl RefUnwindSafe for StartStopError
impl Send for StartStopError
impl Sync for StartStopError
impl Unpin for StartStopError
impl UnwindSafe for StartStopError
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