pub struct CapData {
    pub cfg_type: CapCfgType,
    pub bar: u8,
    pub id: u8,
    pub offset: le64,
    pub length: le64,
    pub notify_off_multiplier: Option<le32>,
}Expand description
PCI Capability Data
Fields§
§cfg_type: CapCfgTypeIdentifies the structure.
bar: u8Where to find it.
id: u8Multiple capabilities of the same type
offset: le64Offset within bar.
length: le64Length of the structure, in bytes.
notify_off_multiplier: Option<le32>Multiplier for queue_notify_off.
Implementations§
Source§impl CapData
 
impl CapData
pub fn read( addr: PciCapabilityAddress, access: impl ConfigRegionAccess, ) -> Option<Self>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CapData
impl RefUnwindSafe for CapData
impl Send for CapData
impl Sync for CapData
impl Unpin for CapData
impl UnwindSafe for CapData
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