pub struct PciDevice { /* private fields */ }
Implementations
sourceimpl PciDevice
impl PciDevice
pub fn new(bus: u8, device: u8, function: u8) -> Option<Self>
pub fn device_type(&self) -> PciDeviceType
pub fn vendor_id(&self) -> VendorId
pub fn device_id(&self) -> DeviceId
pub fn is_bus_master(&self) -> bool
pub fn enable_bus_mastering(&mut self)
pub fn bar(&mut self, index: u8) -> Option<Bar>
pub fn revision_and_class(
&self
) -> (DeviceRevision, BaseClass, SubClass, Interface)
pub fn device_class(&self) -> ClassCode
pub fn info(&self) -> Option<&'static PciDeviceInfo>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PciDevice
impl Send for PciDevice
impl Sync for PciDevice
impl Unpin for PciDevice
impl UnwindSafe for PciDevice
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more