Enum devices::pci::pci_device::Error
source · pub enum Error {
Show 24 variants
AcpiNotifyDeactivationFailed,
AcpiNotifySetupFailed,
AcpiNotifyTestFailed,
AddedDeviceBusNotExist(PciAddress, u8),
BadAlignment,
BusAlreadyExist(u8, u8),
BusNotExist(u8, u8),
CapabilitiesSetup(Error),
CreateCrasClientFailed(Error),
DeviceAlreadyExist(PciAddress, u8),
DeviceNotExist(PciAddress, u8),
EventCloneFailed(i32),
EventCreationFailed(i32),
EventSignalFailed(i32),
IoAllocationFailed(u64, Error),
IoRegistrationFailed(u64, Error),
MmioSetup(Error),
OutOfSpace,
Overflow(u64, u64),
ParentBusNotExist(u8, u8),
PciAddressParseFailure(String, PciAddressError),
PciAllocationFailed,
PciBusWindowAllocationFailure(String),
SizeZero,
}
Variants§
AcpiNotifyDeactivationFailed
Deactivation of ACPI notifications failed
AcpiNotifySetupFailed
Setup of ACPI notifications failed
AcpiNotifyTestFailed
Simulating ACPI notifications hardware triggering failed
AddedDeviceBusNotExist(PciAddress, u8)
Added pci device’s parent bus does not belong to this bus
BadAlignment
Invalid alignment encountered.
BusAlreadyExist(u8, u8)
The new bus has already been added to this bus
BusNotExist(u8, u8)
Target bus not exists on this bus
CapabilitiesSetup(Error)
Setup of the device capabilities failed.
CreateCrasClientFailed(Error)
Create cras client failed.
DeviceAlreadyExist(PciAddress, u8)
Device is already on this bus
DeviceNotExist(PciAddress, u8)
Device not exist on this bus
EventCloneFailed(i32)
Fail to clone an event.
EventCreationFailed(i32)
Fail to create an event.
EventSignalFailed(i32)
Fail to signal on an event.
IoAllocationFailed(u64, Error)
Allocating space for an IO BAR failed.
IoRegistrationFailed(u64, Error)
Registering an IO BAR failed.
MmioSetup(Error)
Setting up MMIO mapping
OutOfSpace
Out-of-space encountered
Overflow(u64, u64)
Overflow encountered
ParentBusNotExist(u8, u8)
The new added bus does not located on this bus
PciAddressParseFailure(String, PciAddressError)
PCI Address parsing failure.
PciAllocationFailed
PCI Address allocation failure.
PciBusWindowAllocationFailure(String)
PCI Bus window allocation failure.
SizeZero
Size of zero encountered
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.