pub struct ExtendedCapabilityHeader<'a> { /* private fields */ }
Implementations§
Source§impl<'a> ExtendedCapabilityHeader<'a>
impl<'a> ExtendedCapabilityHeader<'a>
pub fn capability_id(&self) -> PciBitsReadOnly<'a, u32, u16>
Sourcepub fn capability_version(&self) -> PciBitsReadOnly<'a, u32, u8>
pub fn capability_version(&self) -> PciBitsReadOnly<'a, u32, u8>
This field is a PCI-SIG defined version number that indicates the version of the Capability structure present.
Sourcepub fn next_capability_offset(&self) -> PciBitsReadOnly<'a, u32, u16>
pub fn next_capability_offset(&self) -> PciBitsReadOnly<'a, u32, u16>
This field contains the offset to the next PCI Express Capability structure or 0x000 if no other items exist in the linked list of Capabilities.
You don’t need to be using this directly. Use PciExtendedCapabilities
to iterate
over capabilities instead.
Trait Implementations§
Source§impl<'a> AsPciSubregion<'a> for ExtendedCapabilityHeader<'a>
impl<'a> AsPciSubregion<'a> for ExtendedCapabilityHeader<'a>
Source§fn as_subregion(&self) -> PciSubregion<'a>
fn as_subregion(&self) -> PciSubregion<'a>
Returns a
PciSubregion
corresponding to self
.Source§fn subregion(&self, range: impl RangeBounds<u64>) -> PciSubregion<'a>
fn subregion(&self, range: impl RangeBounds<u64>) -> PciSubregion<'a>
Returns a
PciSubregion
corresponding to a range of self
.Source§impl<'a> BackedByPciSubregion<'a> for ExtendedCapabilityHeader<'a>
impl<'a> BackedByPciSubregion<'a> for ExtendedCapabilityHeader<'a>
Source§fn backed_by(as_subregion: impl AsPciSubregion<'a>) -> Self
fn backed_by(as_subregion: impl AsPciSubregion<'a>) -> Self
Does not check whether the subregion is big enough. If it isn’t, accesses may later fail.
Source§impl<'a> Clone for ExtendedCapabilityHeader<'a>
impl<'a> Clone for ExtendedCapabilityHeader<'a>
Source§fn clone(&self) -> ExtendedCapabilityHeader<'a>
fn clone(&self) -> ExtendedCapabilityHeader<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ExtendedCapabilityHeader<'_>
impl Debug for ExtendedCapabilityHeader<'_>
Source§impl PciBitFieldReadable for ExtendedCapabilityHeader<'_>
impl PciBitFieldReadable for ExtendedCapabilityHeader<'_>
impl<'a> Copy for ExtendedCapabilityHeader<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExtendedCapabilityHeader<'a>
impl<'a> !RefUnwindSafe for ExtendedCapabilityHeader<'a>
impl<'a> Send for ExtendedCapabilityHeader<'a>
impl<'a> Sync for ExtendedCapabilityHeader<'a>
impl<'a> Unpin for ExtendedCapabilityHeader<'a>
impl<'a> !UnwindSafe for ExtendedCapabilityHeader<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, T> PciRegion for T
impl<'a, T> PciRegion for T
Source§fn permissions(&self) -> Permissions
fn permissions(&self) -> Permissions
Whether the region may be read, written, or both.
Source§fn read_bytes(&self, offset: u64, buffer: &mut [u8]) -> Result<(), Error>
fn read_bytes(&self, offset: u64, buffer: &mut [u8]) -> Result<(), Error>
Read from a contiguous range of the region into a byte buffer. Read more