Struct xhci::extended_capabilities::List [−][src]
A struct to access xHCI Extended Capabilities.
Implementations
impl<M> List<M> where
M: Mapper + Clone,
[src]
M: Mapper + Clone,
pub unsafe fn new(
mmio_base: usize,
hccparams1: CapabilityParameters1,
mapper: M
) -> Option<Self>
[src]
mmio_base: usize,
hccparams1: CapabilityParameters1,
mapper: M
) -> Option<Self>
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]
M: Mapper + Clone,
impl<M> IntoIterator for &mut List<M> where
M: Mapper + Clone,
[src]
M: Mapper + Clone,
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?
fn into_iter(self) -> Self::IntoIter
[src]
Auto Trait Implementations
impl<M> Send for List<M> where
M: Send,
M: Send,
impl<M> Sync for List<M> where
M: Sync,
M: Sync,
impl<M> Unpin for List<M> where
M: Unpin,
M: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,