pub enum ParseCrashLogSourceError {
InvalidSource,
InvalidParameter,
}Expand description
Error type returned when parsing a CrashLogSource from a string fails
This error is produced by the FromStr implementation for CrashLogSource
when the input string cannot be parsed into a valid Crash Log source.
Variants§
InvalidSource
The source name is not recognized
Valid source names are: acpi, pmt, and evt
InvalidParameter
The parameter provided for the source is invalid
This occurs when:
- A parameter is provided for sources that don’t accept parameters (
acpi,evt) - The parameter format is invalid for PMT sources (must be either a device name
like
crashlog0or a PCI BDF address like0000:00:1f.5)
Trait Implementations§
Source§impl Debug for ParseCrashLogSourceError
impl Debug for ParseCrashLogSourceError
Source§impl Display for ParseCrashLogSourceError
impl Display for ParseCrashLogSourceError
Source§impl Error for ParseCrashLogSourceError
Available on crate feature std only.
impl Error for ParseCrashLogSourceError
Available on crate feature
std only.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 PartialEq for ParseCrashLogSourceError
impl PartialEq for ParseCrashLogSourceError
Source§fn eq(&self, other: &ParseCrashLogSourceError) -> bool
fn eq(&self, other: &ParseCrashLogSourceError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ParseCrashLogSourceError
Auto Trait Implementations§
impl Freeze for ParseCrashLogSourceError
impl RefUnwindSafe for ParseCrashLogSourceError
impl Send for ParseCrashLogSourceError
impl Sync for ParseCrashLogSourceError
impl Unpin for ParseCrashLogSourceError
impl UnsafeUnpin for ParseCrashLogSourceError
impl UnwindSafe for ParseCrashLogSourceError
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