[−][src]Struct xhci::registers::operational::PortRegisterSet
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]
mmio_base: usize,
capability: &Capability<M2>,
mapper: M1
) -> Result<Array<Self, M1>, Error> where
M1: Mapper,
M2: Mapper + Clone,
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]
fn clone(&self) -> PortRegisterSet
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PortRegisterSet
[src]
impl Debug for PortRegisterSet
[src]
Auto Trait Implementations
impl Send for PortRegisterSet
[src]
impl Sync for PortRegisterSet
[src]
impl Unpin for PortRegisterSet
[src]
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>,