#[repr(transparent)]pub struct ConfigureEndpoint(_);
Expand description
Configure Endpoint Command TRB
Implementations§
source§impl ConfigureEndpoint
impl ConfigureEndpoint
sourcepub fn set_input_context_pointer(&mut self, p: u64) -> &mut Self
pub fn set_input_context_pointer(&mut self, p: u64) -> &mut Self
Sets the value of the Input Context Pointer field.
Panics
This method panics if p
is not 16-byte aligned.
sourcepub fn input_context_pointer(&self) -> u64
pub fn input_context_pointer(&self) -> u64
Returns the value of the Input Context Pointer field.
sourcepub fn deconfigure(self) -> bool
pub fn deconfigure(self) -> bool
Returns the Deconfigure bit.
sourcepub fn set_deconfigure(&mut self) -> &mut Self
pub fn set_deconfigure(&mut self) -> &mut Self
Sets the Deconfigure bit.
sourcepub fn clear_deconfigure(&mut self) -> &mut Self
pub fn clear_deconfigure(&mut self) -> &mut Self
Clears the Deconfigure 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 ConfigureEndpoint
impl AsRef<[u32]> for ConfigureEndpoint
source§impl Clone for ConfigureEndpoint
impl Clone for ConfigureEndpoint
source§fn clone(&self) -> ConfigureEndpoint
fn clone(&self) -> ConfigureEndpoint
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 ConfigureEndpoint
impl Debug for ConfigureEndpoint
source§impl Default for ConfigureEndpoint
impl Default for ConfigureEndpoint
source§impl From<ConfigureEndpoint> for [u32; 4]
impl From<ConfigureEndpoint> for [u32; 4]
source§fn from(t: ConfigureEndpoint) -> Self
fn from(t: ConfigureEndpoint) -> Self
Converts to this type from the input type.
source§impl From<ConfigureEndpoint> for Allowed
impl From<ConfigureEndpoint> for Allowed
source§fn from(v: ConfigureEndpoint) -> Self
fn from(v: ConfigureEndpoint) -> Self
Converts to this type from the input type.
source§impl Hash for ConfigureEndpoint
impl Hash for ConfigureEndpoint
source§impl Ord for ConfigureEndpoint
impl Ord for ConfigureEndpoint
source§fn cmp(&self, other: &ConfigureEndpoint) -> Ordering
fn cmp(&self, other: &ConfigureEndpoint) -> 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<ConfigureEndpoint> for ConfigureEndpoint
impl PartialEq<ConfigureEndpoint> for ConfigureEndpoint
source§fn eq(&self, other: &ConfigureEndpoint) -> bool
fn eq(&self, other: &ConfigureEndpoint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ConfigureEndpoint> for ConfigureEndpoint
impl PartialOrd<ConfigureEndpoint> for ConfigureEndpoint
source§fn partial_cmp(&self, other: &ConfigureEndpoint) -> Option<Ordering>
fn partial_cmp(&self, other: &ConfigureEndpoint) -> 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 ConfigureEndpoint
impl Eq for ConfigureEndpoint
impl StructuralEq for ConfigureEndpoint
impl StructuralPartialEq for ConfigureEndpoint
Auto Trait Implementations§
impl RefUnwindSafe for ConfigureEndpoint
impl Send for ConfigureEndpoint
impl Sync for ConfigureEndpoint
impl Unpin for ConfigureEndpoint
impl UnwindSafe for ConfigureEndpoint
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