Enum rs_release::OsReleaseError
[−]
[src]
pub enum OsReleaseError {
Io(Error),
NoFile,
ParseError,
}Represents possible errors when parsing os-release file/string
Variants
Io(Error)Input-Output error (failed to read file)
NoFileFailed to find os-release file in standard paths
ParseErrorFile is malformed
Trait Implementations
impl Debug for OsReleaseError[src]
impl PartialEq for OsReleaseError[src]
fn eq(&self, other: &OsReleaseError) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Display for OsReleaseError[src]
impl Error for OsReleaseError[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<Error> for OsReleaseError[src]
fn from(err: Error) -> OsReleaseError
Performs the conversion.