Enum abyss::dev::pci::PciDeviceHeader
source · pub enum PciDeviceHeader {
Type0(PciHeader<0>),
Type1(PciHeader<1>),
Type2(PciHeader<2>),
}
Expand description
A Enumeration of multiple types of Pci Device Headers.
Variants§
Implementations§
source§impl PciDeviceHeader
impl PciDeviceHeader
sourcepub fn device_vendor(&self) -> DeviceVendor
pub fn device_vendor(&self) -> DeviceVendor
Get device and vendor information of the device.
sourcepub fn class(&self) -> PciDeviceClass
pub fn class(&self) -> PciDeviceClass
Get class of the device.
pub fn get_secondary_bus(&self) -> Option<u8>
Trait Implementations§
source§impl Clone for PciDeviceHeader
impl Clone for PciDeviceHeader
source§fn clone(&self) -> PciDeviceHeader
fn clone(&self) -> PciDeviceHeader
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PciDeviceHeader
impl Debug for PciDeviceHeader
impl Copy for PciDeviceHeader
Auto Trait Implementations§
impl RefUnwindSafe for PciDeviceHeader
impl Send for PciDeviceHeader
impl Sync for PciDeviceHeader
impl Unpin for PciDeviceHeader
impl UnwindSafe for PciDeviceHeader
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
const: unstable§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more