pub struct PciHeaderBase { /* private fields */ }Implementations§
Source§impl PciHeaderBase
impl PciHeaderBase
pub fn header(&self) -> PciHeader
pub fn address(&self) -> PciAddress
pub fn header_type(&self) -> HeaderType
pub fn has_multiple_functions(&self) -> bool
pub fn update_command<F>(&mut self, f: F)
pub fn status(&self) -> StatusRegister
pub fn command(&self) -> CommandRegister
pub fn revision_and_class(&self) -> RevisionAndClass
pub fn vendor_id(&self) -> u16
pub fn device_id(&self) -> u16
pub fn read(&self, offset: u16) -> u32
pub fn write(&self, offset: u16, value: u32)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PciHeaderBase
impl !RefUnwindSafe for PciHeaderBase
impl Send for PciHeaderBase
impl Sync for PciHeaderBase
impl Unpin for PciHeaderBase
impl !UnwindSafe for PciHeaderBase
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