#[repr(transparent)]pub struct ResetEndpoint(_);
Expand description
Reset Endpoint Command TRB
Implementations§
source§impl ResetEndpoint
impl ResetEndpoint
source§impl ResetEndpoint
impl ResetEndpoint
source§impl ResetEndpoint
impl ResetEndpoint
sourcepub fn transfer_state_preserve(self) -> bool
pub fn transfer_state_preserve(self) -> bool
Returns the Transfer State Preserve bit.
sourcepub fn set_transfer_state_preserve(&mut self) -> &mut Self
pub fn set_transfer_state_preserve(&mut self) -> &mut Self
Sets the Transfer State Preserve bit.
sourcepub fn clear_transfer_state_preserve(&mut self) -> &mut Self
pub fn clear_transfer_state_preserve(&mut self) -> &mut Self
Clears the Transfer State Preserve bit.
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 ResetEndpoint
impl AsRef<[u32]> for ResetEndpoint
source§impl Clone for ResetEndpoint
impl Clone for ResetEndpoint
source§fn clone(&self) -> ResetEndpoint
fn clone(&self) -> ResetEndpoint
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 ResetEndpoint
impl Debug for ResetEndpoint
source§impl Default for ResetEndpoint
impl Default for ResetEndpoint
source§impl From<ResetEndpoint> for [u32; 4]
impl From<ResetEndpoint> for [u32; 4]
source§fn from(t: ResetEndpoint) -> Self
fn from(t: ResetEndpoint) -> Self
Converts to this type from the input type.
source§impl From<ResetEndpoint> for Allowed
impl From<ResetEndpoint> for Allowed
source§fn from(v: ResetEndpoint) -> Self
fn from(v: ResetEndpoint) -> Self
Converts to this type from the input type.
source§impl Hash for ResetEndpoint
impl Hash for ResetEndpoint
source§impl Ord for ResetEndpoint
impl Ord for ResetEndpoint
source§fn cmp(&self, other: &ResetEndpoint) -> Ordering
fn cmp(&self, other: &ResetEndpoint) -> 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<ResetEndpoint> for ResetEndpoint
impl PartialEq<ResetEndpoint> for ResetEndpoint
source§fn eq(&self, other: &ResetEndpoint) -> bool
fn eq(&self, other: &ResetEndpoint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ResetEndpoint> for ResetEndpoint
impl PartialOrd<ResetEndpoint> for ResetEndpoint
source§fn partial_cmp(&self, other: &ResetEndpoint) -> Option<Ordering>
fn partial_cmp(&self, other: &ResetEndpoint) -> 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 ResetEndpoint
impl Eq for ResetEndpoint
impl StructuralEq for ResetEndpoint
impl StructuralPartialEq for ResetEndpoint
Auto Trait Implementations§
impl RefUnwindSafe for ResetEndpoint
impl Send for ResetEndpoint
impl Sync for ResetEndpoint
impl Unpin for ResetEndpoint
impl UnwindSafe for ResetEndpoint
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