pub enum PciBdfParseError {
InvalidHex(ParseIntError),
InvalidFormat(String),
}Expand description
Errors associated with parsing a BDF string.
Variants§
InvalidHex(ParseIntError)
Unable to parse bus/device/function number hex: {0}
InvalidFormat(String)
Invalid format: {0} (expected format: 0000:00:00.0)
Trait Implementations§
Source§impl Debug for PciBdfParseError
impl Debug for PciBdfParseError
Source§impl Display for PciBdfParseError
impl Display for PciBdfParseError
Source§impl Error for PciBdfParseError
impl Error for PciBdfParseError
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<ParseIntError> for PciBdfParseError
impl From<ParseIntError> for PciBdfParseError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PciBdfParseError
impl RefUnwindSafe for PciBdfParseError
impl Send for PciBdfParseError
impl Sync for PciBdfParseError
impl Unpin for PciBdfParseError
impl UnwindSafe for PciBdfParseError
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