pub enum PropertyParseError {
State(StateParseError),
MissingDelimeter(String),
MissingProperty(&'static str),
CommandError(Error),
}
Expand description
Errors that can occur when trying to access systemd unit properties
Variants§
State(StateParseError)
An invalid state was returned
MissingDelimeter(String)
A variable is missing the ‘=’ delimiter
MissingProperty(&'static str)
An expected property is missing
CommandError(Error)
A command error occured running systemctl
Trait Implementations§
Source§impl Debug for PropertyParseError
impl Debug for PropertyParseError
Source§impl Display for PropertyParseError
impl Display for PropertyParseError
Source§impl Error for PropertyParseError
impl Error for PropertyParseError
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 PropertyParseError
impl From<Error> for PropertyParseError
Source§impl From<StateParseError> for PropertyParseError
impl From<StateParseError> for PropertyParseError
Source§fn from(source: StateParseError) -> Self
fn from(source: StateParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PropertyParseError
impl !RefUnwindSafe for PropertyParseError
impl Send for PropertyParseError
impl Sync for PropertyParseError
impl Unpin for PropertyParseError
impl !UnwindSafe for PropertyParseError
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