pub struct DeviceId(/* private fields */);
Expand description
Abstraction for bindings::pci_device_id.
Implementations§
Source§impl DeviceId
impl DeviceId
Sourcepub const fn from_id(vendor: u32, device: u32) -> Self
pub const fn from_id(vendor: u32, device: u32) -> Self
Equivalent to C’s PCI_DEVICE
macro.
Create a new pci::DeviceId
from a vendor and device ID number.
Sourcepub const fn from_class(class: u32, class_mask: u32) -> Self
pub const fn from_class(class: u32, class_mask: u32) -> Self
Equivalent to C’s PCI_DEVICE_CLASS
macro.
Create a new pci::DeviceId
from a class number and mask.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeviceId
impl RefUnwindSafe for DeviceId
impl Send for DeviceId
impl Sync for DeviceId
impl Unpin for DeviceId
impl UnwindSafe for DeviceId
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