Struct xhci::extended_capabilities::List[][src]

pub struct List<M> where
    M: Mapper + Clone
{ /* fields omitted */ }

A struct to access xHCI Extended Capabilities.

Implementations

impl<M> List<M> where
    M: Mapper + Clone
[src]

pub unsafe fn new(
    mmio_base: usize,
    hccparams1: CapabilityParameters1,
    mapper: M
) -> Option<Self>
[src]

Creates a new accessor to the xHCI Extended Capabilities.

This method may return a None value if the xHC does not support the xHCI Extended Capabilities.

Safety

The caller must ensure that each of the xHCI Extended Capabilities is accessed only through the returned accessor.

Examples

let mut r = unsafe { xhci::Registers::new(MMIO_BASE, mapper.clone()) };
let mut l = unsafe {
    extended_capabilities::List::new(MMIO_BASE, r.capability.hccparams1.read(), mapper)
};

Trait Implementations

impl<M: Debug> Debug for List<M> where
    M: Mapper + Clone
[src]

impl<M> IntoIterator for &mut List<M> where
    M: Mapper + Clone
[src]

type Item = Result<ExtendedCapability<M>, NotSupportedId>

The type of the elements being iterated over.

type IntoIter = IterMut<M>

Which kind of iterator are we turning this into?

Auto Trait Implementations

impl<M> Send for List<M> where
    M: Send

impl<M> Sync for List<M> where
    M: Sync

impl<M> Unpin for List<M> where
    M: Unpin

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.