pub enum OsReleaseError {
Io(Error),
NoFile,
ParseError,
}
Expand description
Represents possible errors when parsing os-release file/string
Variants§
Io(Error)
Input-Output error (failed to read file)
NoFile
Failed to find os-release file in standard paths
ParseError
File is malformed
Trait Implementations§
Source§impl Debug for OsReleaseError
impl Debug for OsReleaseError
Source§impl Display for OsReleaseError
impl Display for OsReleaseError
Source§impl Error for OsReleaseError
impl Error for OsReleaseError
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
1.30.0 · 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 OsReleaseError
impl From<Error> for OsReleaseError
Source§impl PartialEq for OsReleaseError
impl PartialEq for OsReleaseError
Auto Trait Implementations§
impl Freeze for OsReleaseError
impl !RefUnwindSafe for OsReleaseError
impl Send for OsReleaseError
impl Sync for OsReleaseError
impl Unpin for OsReleaseError
impl !UnwindSafe for OsReleaseError
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