#[repr(transparent)]pub struct SetTrDequeuePointer(_);
Expand description
Set TR Dequeue Pointer Command TRB
Implementations§
source§impl SetTrDequeuePointer
impl SetTrDequeuePointer
sourcepub fn dequeue_cycle_state(self) -> bool
pub fn dequeue_cycle_state(self) -> bool
Returns the Dequeue Cycle State bit.
sourcepub fn set_dequeue_cycle_state(&mut self) -> &mut Self
pub fn set_dequeue_cycle_state(&mut self) -> &mut Self
Sets the Dequeue Cycle State bit.
sourcepub fn clear_dequeue_cycle_state(&mut self) -> &mut Self
pub fn clear_dequeue_cycle_state(&mut self) -> &mut Self
Clears the Dequeue Cycle State bit.
sourcepub fn stream_context_type(self) -> u8
pub fn stream_context_type(self) -> u8
Returns the value of the Stream Context Type field.
sourcepub fn set_stream_context_type(&mut self, value: u8) -> &mut Self
pub fn set_stream_context_type(&mut self, value: u8) -> &mut Self
Sets the value of the Stream Context Type field.
sourcepub fn set_new_tr_dequeue_pointer(&mut self, p: u64) -> &mut Self
pub fn set_new_tr_dequeue_pointer(&mut self, p: u64) -> &mut Self
Sets the value of the New TR Dequeue Pointer field.
Panics
This method panics if p
is not 16-byte aligned.
sourcepub fn new_tr_dequeue_pointer(&self) -> u64
pub fn new_tr_dequeue_pointer(&self) -> u64
Returns the value of the New TR Dequeue Pointer field.
sourcepub fn set_stream_id(&mut self, value: u16) -> &mut Self
pub fn set_stream_id(&mut self, value: u16) -> &mut Self
Sets the value of the Stream ID field.
sourcepub fn endpoint_id(self) -> u8
pub fn endpoint_id(self) -> u8
Returns the value of the Endpoint ID field.
sourcepub fn set_endpoint_id(&mut self, value: u8) -> &mut Self
pub fn set_endpoint_id(&mut self, value: u8) -> &mut Self
Sets the value of the Endpoint ID field.
sourcepub fn set_slot_id(&mut self, value: u8) -> &mut Self
pub fn set_slot_id(&mut self, value: u8) -> &mut Self
Sets the value of the Slot ID field.
Trait Implementations§
source§impl AsRef<[u32]> for SetTrDequeuePointer
impl AsRef<[u32]> for SetTrDequeuePointer
source§impl Clone for SetTrDequeuePointer
impl Clone for SetTrDequeuePointer
source§fn clone(&self) -> SetTrDequeuePointer
fn clone(&self) -> SetTrDequeuePointer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SetTrDequeuePointer
impl Debug for SetTrDequeuePointer
source§impl Default for SetTrDequeuePointer
impl Default for SetTrDequeuePointer
source§impl From<SetTrDequeuePointer> for [u32; 4]
impl From<SetTrDequeuePointer> for [u32; 4]
source§fn from(t: SetTrDequeuePointer) -> Self
fn from(t: SetTrDequeuePointer) -> Self
Converts to this type from the input type.
source§impl From<SetTrDequeuePointer> for Allowed
impl From<SetTrDequeuePointer> for Allowed
source§fn from(v: SetTrDequeuePointer) -> Self
fn from(v: SetTrDequeuePointer) -> Self
Converts to this type from the input type.
source§impl Hash for SetTrDequeuePointer
impl Hash for SetTrDequeuePointer
source§impl Ord for SetTrDequeuePointer
impl Ord for SetTrDequeuePointer
source§fn cmp(&self, other: &SetTrDequeuePointer) -> Ordering
fn cmp(&self, other: &SetTrDequeuePointer) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SetTrDequeuePointer> for SetTrDequeuePointer
impl PartialEq<SetTrDequeuePointer> for SetTrDequeuePointer
source§fn eq(&self, other: &SetTrDequeuePointer) -> bool
fn eq(&self, other: &SetTrDequeuePointer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SetTrDequeuePointer> for SetTrDequeuePointer
impl PartialOrd<SetTrDequeuePointer> for SetTrDequeuePointer
source§fn partial_cmp(&self, other: &SetTrDequeuePointer) -> Option<Ordering>
fn partial_cmp(&self, other: &SetTrDequeuePointer) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SetTrDequeuePointer
impl Eq for SetTrDequeuePointer
impl StructuralEq for SetTrDequeuePointer
impl StructuralPartialEq for SetTrDequeuePointer
Auto Trait Implementations§
impl RefUnwindSafe for SetTrDequeuePointer
impl Send for SetTrDequeuePointer
impl Sync for SetTrDequeuePointer
impl Unpin for SetTrDequeuePointer
impl UnwindSafe for SetTrDequeuePointer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more