pub enum DetectError {
Io(Error),
Parse(ParseError),
}Expand description
Errors returned by detect when reading /etc/os-release from disk.
Variants§
Io(Error)
I/O error reading /etc/os-release.
Parse(ParseError)
The file contents failed parse_os_release.
Trait Implementations§
Source§impl Debug for DetectError
impl Debug for DetectError
Source§impl Display for DetectError
impl Display for DetectError
Source§impl Error for DetectError
impl Error for DetectError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for DetectError
impl !UnwindSafe for DetectError
impl Freeze for DetectError
impl Send for DetectError
impl Sync for DetectError
impl Unpin for DetectError
impl UnsafeUnpin for DetectError
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