Enum rs_release::OsReleaseError
source · 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)>
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§fn from(err: Error) -> OsReleaseError
fn from(err: Error) -> OsReleaseError
Converts to this type from the input type.
source§impl PartialEq<OsReleaseError> for OsReleaseError
impl PartialEq<OsReleaseError> for OsReleaseError
source§fn eq(&self, other: &OsReleaseError) -> bool
fn eq(&self, other: &OsReleaseError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.