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