Struct xhci::context::InputControl
source · #[repr(transparent)]pub struct InputControl<const N: usize>(_);
Expand description
Input Control Context.
Refer to InputControlHandler
for the available methods.
Implementations§
source§impl InputControl<8>
impl InputControl<8>
sourcepub const fn new_32byte() -> Self
pub const fn new_32byte() -> Self
Creates an empty 32 byte Input Control Context.
source§impl InputControl<16>
impl InputControl<16>
sourcepub const fn new_64byte() -> Self
pub const fn new_64byte() -> Self
Creates an empty 64 byte Input Control Context.
Trait Implementations§
source§impl<const N: usize> Clone for InputControl<N>
impl<const N: usize> Clone for InputControl<N>
source§fn clone(&self) -> InputControl<N>
fn clone(&self) -> InputControl<N>
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<const N: usize> Debug for InputControl<N>
impl<const N: usize> Debug for InputControl<N>
source§impl<const N: usize> Hash for InputControl<N>
impl<const N: usize> Hash for InputControl<N>
source§impl<const N: usize> InputControlHandler for InputControl<N>
impl<const N: usize> InputControlHandler for InputControl<N>
source§fn drop_context_flag(&self, i: usize) -> bool
fn drop_context_flag(&self, i: usize) -> bool
source§fn set_drop_context_flag(&mut self, i: usize)
fn set_drop_context_flag(&mut self, i: usize)
source§fn clear_drop_context_flag(&mut self, i: usize)
fn clear_drop_context_flag(&mut self, i: usize)
source§fn add_context_flag(&self, i: usize) -> bool
fn add_context_flag(&self, i: usize) -> bool
source§fn set_add_context_flag(&mut self, i: usize)
fn set_add_context_flag(&mut self, i: usize)
source§fn clear_add_context_flag(&mut self, i: usize)
fn clear_add_context_flag(&mut self, i: usize)
source§fn configuration_value(&self) -> u8
fn configuration_value(&self) -> u8
Returns the value of the
Configuration Value
field.
source§fn set_configuration_value(&mut self, value: u8)
fn set_configuration_value(&mut self, value: u8)
Sets the value of the
Configuration Value
field.
source§fn interface_number(&self) -> u8
fn interface_number(&self) -> u8
Returns the value of the
Interface Number
field.
source§fn set_interface_number(&mut self, value: u8)
fn set_interface_number(&mut self, value: u8)
Sets the value of the
Interface Number
field.
source§fn alternate_setting(&self) -> u8
fn alternate_setting(&self) -> u8
Returns the value of the
Alternate Setting
field.
source§fn set_alternate_setting(&mut self, value: u8)
fn set_alternate_setting(&mut self, value: u8)
Sets the value of the
Alternate Setting
field.
source§impl<const N: usize> Ord for InputControl<N>
impl<const N: usize> Ord for InputControl<N>
source§fn cmp(&self, other: &InputControl<N>) -> Ordering
fn cmp(&self, other: &InputControl<N>) -> 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<const N: usize> PartialEq<InputControl<N>> for InputControl<N>
impl<const N: usize> PartialEq<InputControl<N>> for InputControl<N>
source§fn eq(&self, other: &InputControl<N>) -> bool
fn eq(&self, other: &InputControl<N>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<const N: usize> PartialOrd<InputControl<N>> for InputControl<N>
impl<const N: usize> PartialOrd<InputControl<N>> for InputControl<N>
source§fn partial_cmp(&self, other: &InputControl<N>) -> Option<Ordering>
fn partial_cmp(&self, other: &InputControl<N>) -> 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<const N: usize> Copy for InputControl<N>
impl<const N: usize> Eq for InputControl<N>
impl<const N: usize> StructuralEq for InputControl<N>
impl<const N: usize> StructuralPartialEq for InputControl<N>
Auto Trait Implementations§
impl<const N: usize> RefUnwindSafe for InputControl<N>
impl<const N: usize> Send for InputControl<N>
impl<const N: usize> Sync for InputControl<N>
impl<const N: usize> Unpin for InputControl<N>
impl<const N: usize> UnwindSafe for InputControl<N>
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