pub enum PciOpenError {
DeviceOpenFailed {
id: usize,
source: Error,
},
UnrecognizedDeviceId {
pci_id: usize,
device_id: u16,
},
IoctlError {
name: String,
id: usize,
source: Error,
},
BarMappingError {
name: String,
id: usize,
},
FakeMmapFailed {
buffer: String,
device_id: usize,
source: Error,
},
}Variants§
Trait Implementations§
Source§impl Debug for PciOpenError
impl Debug for PciOpenError
Source§impl Display for PciOpenError
impl Display for PciOpenError
Source§impl Error for PciOpenError
impl Error for PciOpenError
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<PciOpenError> for PciError
impl From<PciOpenError> for PciError
Source§fn from(source: PciOpenError) -> Self
fn from(source: PciOpenError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PciOpenError
impl !RefUnwindSafe for PciOpenError
impl Send for PciOpenError
impl Sync for PciOpenError
impl Unpin for PciOpenError
impl !UnwindSafe for PciOpenError
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