pub enum SystemdErrors {
Show 31 variants
Command(OsString, Vec<OsString>, Vec<(OsString, Option<OsString>)>, Error),
Custom(String),
IoError(Error),
Utf8Error(FromUtf8Error),
Fmt(Error),
ZMethodError(String, String, String),
CmdNoFlatpakSpawn,
CmdNoFreedesktopFlatpakPermission(Option<String>, Option<String>),
JournalError(String),
NoFilePathforUnit(String),
Malformed(String, String),
NotAuthorized,
NotAuthorizedAuthentificationDismissed,
NoUnit,
SystemCtlError(String),
Tokio,
ZBusError(Error),
ZAccessDenied(String, String),
ZNoSuchUnit(String, String),
ZNoSuchUnitProxy(String, String),
ZJobTypeNotApplicable(String, String),
ZUnitMasked(String, String),
ZVariantError(Error),
ZBusFdoError(Error),
ZFdoServiceUnknowm(String),
ZFdoZError(String),
ZXml(Error),
Unreachable,
InvalidPath(String),
Timeout(Duration),
JobRemoved(String),
}Variants§
Command(OsString, Vec<OsString>, Vec<(OsString, Option<OsString>)>, Error)
Custom(String)
IoError(Error)
Utf8Error(FromUtf8Error)
Fmt(Error)
ZMethodError(String, String, String)
CmdNoFlatpakSpawn
CmdNoFreedesktopFlatpakPermission(Option<String>, Option<String>)
JournalError(String)
NoFilePathforUnit(String)
Malformed(String, String)
NotAuthorized
NotAuthorizedAuthentificationDismissed
NoUnit
SystemCtlError(String)
Tokio
ZBusError(Error)
ZAccessDenied(String, String)
ZNoSuchUnit(String, String)
ZNoSuchUnitProxy(String, String)
ZJobTypeNotApplicable(String, String)
ZUnitMasked(String, String)
ZVariantError(Error)
ZBusFdoError(Error)
ZFdoServiceUnknowm(String)
ZFdoZError(String)
ZXml(Error)
Unreachable
InvalidPath(String)
Timeout(Duration)
JobRemoved(String)
Implementations§
Source§impl SystemdErrors
impl SystemdErrors
pub fn gui_description(&self) -> Option<String>
pub fn human_error_type(&self) -> String
pub fn file_not_found(&self) -> bool
Trait Implementations§
Source§impl Debug for SystemdErrors
impl Debug for SystemdErrors
Source§impl Display for SystemdErrors
impl Display for SystemdErrors
Source§impl From<&str> for SystemdErrors
impl From<&str> for SystemdErrors
Source§impl From<Error> for SystemdErrors
impl From<Error> for SystemdErrors
Source§impl From<Error> for SystemdErrors
impl From<Error> for SystemdErrors
Source§impl From<Error> for SystemdErrors
impl From<Error> for SystemdErrors
Source§impl From<Error> for SystemdErrors
impl From<Error> for SystemdErrors
Source§impl From<Error> for SystemdErrors
impl From<Error> for SystemdErrors
Source§impl From<Error> for SystemdErrors
impl From<Error> for SystemdErrors
Source§impl From<FromUtf8Error> for SystemdErrors
impl From<FromUtf8Error> for SystemdErrors
Source§fn from(error: FromUtf8Error) -> Self
fn from(error: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<JoinError> for SystemdErrors
impl From<JoinError> for SystemdErrors
Source§impl From<String> for SystemdErrors
impl From<String> for SystemdErrors
Source§impl From<SysdBaseError> for SystemdErrors
impl From<SysdBaseError> for SystemdErrors
Source§fn from(value: SysdBaseError) -> Self
fn from(value: SysdBaseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SystemdErrors
impl !RefUnwindSafe for SystemdErrors
impl Send for SystemdErrors
impl Sync for SystemdErrors
impl Unpin for SystemdErrors
impl UnsafeUnpin for SystemdErrors
impl !UnwindSafe for SystemdErrors
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