Struct xhci::ring::trb::command::ResetEndpoint[][src]

#[repr(transparent)]pub struct ResetEndpoint(_);

Reset Endpoint Command TRB

Implementations

impl ResetEndpoint[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 ResetEndpoint[src]

#[must_use]pub fn new() -> Self[src]

Creates a new Reset Endpoint Command TRB.

This method sets the sets the value of the TRB Type field properly. All the other fieldds are set to 0.

impl ResetEndpoint[src]

pub fn set_transfer_state_preserve(&mut self, tsp: bool) -> &mut Self[src]

Sets the value of the Transfer State Preserve field.

#[must_use]pub fn transfer_state_preserve(&self) -> bool[src]

Returns the value of the Transfer State Preserve field.

pub fn set_endpoint_id(&mut self, i: u8) -> &mut Self[src]

Sets the value of the Endpoint ID field.

#[must_use]pub fn endpoint_id(&self) -> u8[src]

Returns the value of the Endpoint ID.

pub fn set_slot_id(&mut self, i: u8) -> &mut Self[src]

Sets the value of the Slot ID field.

#[must_use]pub fn slot_id(&self) -> u8[src]

Returns the value of the Slot ID field.

Trait Implementations

impl AsRef<[u32]> for ResetEndpoint[src]

impl Clone for ResetEndpoint[src]

impl Copy for ResetEndpoint[src]

impl Debug for ResetEndpoint[src]

impl Default for ResetEndpoint[src]

impl Eq for ResetEndpoint[src]

impl From<ResetEndpoint> for Allowed[src]

impl Hash for ResetEndpoint[src]

impl Ord for ResetEndpoint[src]

impl PartialEq<ResetEndpoint> for ResetEndpoint[src]

impl PartialOrd<ResetEndpoint> for ResetEndpoint[src]

impl StructuralEq for ResetEndpoint[src]

impl StructuralPartialEq for ResetEndpoint[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.