pub enum CreateError {
NoSystemCtl,
SystemCtlFailed,
SystemCtlReloadFailed,
FileIoError(Error),
}Expand description
Errors that can occur when creating a service
Variants§
NoSystemCtl
Systemctl does not exist or is not callable for some reason
SystemCtlFailed
The systemctl command returned an error
SystemCtlReloadFailed
Systemctl reload command failed for some reason
FileIoError(Error)
Unable to create or write to the systemctl service file
Trait Implementations§
Source§impl Debug for CreateError
impl Debug for CreateError
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 CreateError
impl !RefUnwindSafe for CreateError
impl Send for CreateError
impl Sync for CreateError
impl Unpin for CreateError
impl !UnwindSafe for CreateError
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