Struct xhci::ring::trb::event::TransferEvent[][src]

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

Transfer Event TRB

Implementations

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

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

Creates a new Transfer Event TRB.

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

impl TransferEvent[src]

pub fn completion_code(&self) -> Result<CompletionCode, u8>[src]

Returns the Completion Code.

Errors

This method may return an Err value with the Completion Code that is either reserved or not implemented by this crate.

impl TransferEvent[src]

#[must_use]pub fn trb_pointer(&self) -> u64[src]

Returns the value of the TRB Pointer field.

#[must_use]pub fn trb_transfer_length(&self) -> u32[src]

Returns the value of the TRB Transfer Length field.

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

Returns the value of the Event Data field.

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

Returns the value of the Endpoint 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 TransferEvent[src]

impl Clone for TransferEvent[src]

impl Copy for TransferEvent[src]

impl Debug for TransferEvent[src]

impl Default for TransferEvent[src]

impl Eq for TransferEvent[src]

impl From<TransferEvent> for Allowed[src]

impl Hash for TransferEvent[src]

impl Ord for TransferEvent[src]

impl PartialEq<TransferEvent> for TransferEvent[src]

impl PartialOrd<TransferEvent> for TransferEvent[src]

impl StructuralEq for TransferEvent[src]

impl StructuralPartialEq for TransferEvent[src]

impl TryFrom<[u32; 4]> for TransferEvent[src]

type Error = [u32; 4]

The type returned in the event of a conversion error.

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.