[][src]Struct xhci::registers::operational::PortRegisterSet

#[repr(C)]pub struct PortRegisterSet {
    pub portsc: PortStatusAndControlRegister,
    // some fields omitted
}

Port Register Set

Fields

portsc: PortStatusAndControlRegister

Implementations

impl PortRegisterSet[src]

pub unsafe fn new<M1, M2>(
    mmio_base: usize,
    capability: &Capability<M2>,
    mapper: M1
) -> Result<Array<Self, M1>, Error> where
    M1: Mapper,
    M2: Mapper + Clone
[src]

Creates a new accessor to the array of the Port Register Set.

Safety

Caller must ensure that only one accessor is created, otherwise it may cause undefined behavior such as data race.

Errors

This method may return a accessor::Error::NotAligned error if mmio_base is not aligned properly.

Trait Implementations

impl Clone for PortRegisterSet[src]

impl Copy for PortRegisterSet[src]

impl Debug for PortRegisterSet[src]

Auto Trait Implementations

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.