pub struct PciExtendedCapabilities<'a> { /* private fields */ }Expand description
Lets you inspect and manipulate the PCI Extended Capabilities defined in the configuration space of some PCI device.
Implementations§
Source§impl<'a> PciExtendedCapabilities<'a>
impl<'a> PciExtendedCapabilities<'a>
pub fn backed_by(config_space: PciConfig<'a>) -> Result<Self>
Sourcepub fn iter(
&self,
) -> PciExtendedCapabilitiesIter<'a, UnspecifiedExtendedCapability<'a>> ⓘ
pub fn iter( &self, ) -> PciExtendedCapabilitiesIter<'a, UnspecifiedExtendedCapability<'a>> ⓘ
Returns an iterator over all extended capabilities.
Sourcepub fn of_type<C: ExtendedCapability<'a>>(
&self,
) -> Result<PciExtendedCapabilitiesIter<'a, C>>
pub fn of_type<C: ExtendedCapability<'a>>( &self, ) -> Result<PciExtendedCapabilitiesIter<'a, C>>
Returns an iterator over the capabilities that can be represented by C.
This works by trying C::backed_by on every capability.
Trait Implementations§
Source§impl<'a> Clone for PciExtendedCapabilities<'a>
impl<'a> Clone for PciExtendedCapabilities<'a>
Source§fn clone(&self) -> PciExtendedCapabilities<'a>
fn clone(&self) -> PciExtendedCapabilities<'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<'a> Debug for PciExtendedCapabilities<'a>
impl<'a> Debug for PciExtendedCapabilities<'a>
Source§impl<'a, 'b> IntoIterator for &'b PciExtendedCapabilities<'a>
impl<'a, 'b> IntoIterator for &'b PciExtendedCapabilities<'a>
Source§type Item = UnspecifiedExtendedCapability<'a>
type Item = UnspecifiedExtendedCapability<'a>
The type of the elements being iterated over.
Source§type IntoIter = PciExtendedCapabilitiesIter<'a, UnspecifiedExtendedCapability<'a>>
type IntoIter = PciExtendedCapabilitiesIter<'a, UnspecifiedExtendedCapability<'a>>
Which kind of iterator are we turning this into?
Source§impl<'a> IntoIterator for PciExtendedCapabilities<'a>
impl<'a> IntoIterator for PciExtendedCapabilities<'a>
Auto Trait Implementations§
impl<'a> Freeze for PciExtendedCapabilities<'a>
impl<'a> !RefUnwindSafe for PciExtendedCapabilities<'a>
impl<'a> Send for PciExtendedCapabilities<'a>
impl<'a> Sync for PciExtendedCapabilities<'a>
impl<'a> Unpin for PciExtendedCapabilities<'a>
impl<'a> !UnwindSafe for PciExtendedCapabilities<'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