Struct xhci::ring::trb::event::PortStatusChange [−][src]
Port Status Change Event TRB
Implementations
impl PortStatusChange
[src]
#[must_use]pub fn into_raw(self) -> [u32; 4]
[src]
Returns the wrapped array.
#[must_use]pub fn cycle_bit(&self) -> bool
[src]
Returns the value of the Cycle Bit.
pub fn set_cycle_bit(&mut self, b: bool) -> &mut Self
[src]
Sets the value of the Cycle Bit.
impl PortStatusChange
[src]
#[must_use]pub fn new() -> Self
[src]
Creates a new Port Status Change Event TRB.
This method sets the sets the value of the TRB Type field properly. All the other fieldds are set to 0.
impl PortStatusChange
[src]
pub fn completion_code(&self) -> Result<CompletionCode, u8>
[src]
impl PortStatusChange
[src]
Trait Implementations
impl AsRef<[u32]> for PortStatusChange
[src]
impl Clone for PortStatusChange
[src]
fn clone(&self) -> PortStatusChange
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for PortStatusChange
[src]
impl Debug for PortStatusChange
[src]
impl Default for PortStatusChange
[src]
impl Eq for PortStatusChange
[src]
impl From<PortStatusChange> for Allowed
[src]
fn from(v: PortStatusChange) -> Self
[src]
impl Hash for PortStatusChange
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for PortStatusChange
[src]
fn cmp(&self, other: &PortStatusChange) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<PortStatusChange> for PortStatusChange
[src]
fn eq(&self, other: &PortStatusChange) -> bool
[src]
fn ne(&self, other: &PortStatusChange) -> bool
[src]
impl PartialOrd<PortStatusChange> for PortStatusChange
[src]
fn partial_cmp(&self, other: &PortStatusChange) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for PortStatusChange
[src]
impl StructuralPartialEq for PortStatusChange
[src]
impl TryFrom<[u32; 4]> for PortStatusChange
[src]
Auto Trait Implementations
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>,