Struct tokio_hidg::KeyboardOutput
source · #[repr(C, packed(1))]pub struct KeyboardOutput { /* private fields */ }
Expand description
Keyboard output report
Implementations§
source§impl KeyboardOutput
impl KeyboardOutput
sourcepub fn change_leds(&mut self, leds: Leds, state: bool)
pub fn change_leds(&mut self, leds: Leds, state: bool)
Change LEDs state
sourcepub fn change_led(&mut self, led: Led, state: bool)
pub fn change_led(&mut self, led: Led, state: bool)
Change LED state
sourcepub fn diff<'i>(&'i self, other: &'i KeyboardOutput) -> LedStateChanges<'i> ⓘ
pub fn diff<'i>(&'i self, other: &'i KeyboardOutput) -> LedStateChanges<'i> ⓘ
Get LED state changes between two reports
Difference of two reports
Trait Implementations§
source§impl AsMut<[u8]> for KeyboardOutput
impl AsMut<[u8]> for KeyboardOutput
source§impl AsRef<[u8]> for KeyboardOutput
impl AsRef<[u8]> for KeyboardOutput
source§impl Clone for KeyboardOutput
impl Clone for KeyboardOutput
source§fn clone(&self) -> KeyboardOutput
fn clone(&self) -> KeyboardOutput
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 KeyboardOutput
impl Debug for KeyboardOutput
source§impl Default for KeyboardOutput
impl Default for KeyboardOutput
source§fn default() -> KeyboardOutput
fn default() -> KeyboardOutput
Returns the “default value” for a type. Read more
source§impl Extend<KeyboardOutput> for KeyboardOutput
impl Extend<KeyboardOutput> for KeyboardOutput
source§fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = KeyboardOutput>,
fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = KeyboardOutput>,
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl Extend<StateChange<Led>> for KeyboardOutput
impl Extend<StateChange<Led>> for KeyboardOutput
source§fn extend<T>(&mut self, iter: T)
fn extend<T>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl Extend<StateChange<Leds>> for KeyboardOutput
impl Extend<StateChange<Leds>> for KeyboardOutput
source§fn extend<T>(&mut self, iter: T)
fn extend<T>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl<'i> Sub for &'i KeyboardOutput
impl<'i> Sub for &'i KeyboardOutput
§type Output = LedStateChanges<'i>
type Output = LedStateChanges<'i>
The resulting type after applying the
-
operator.source§fn sub(self, other: &'i KeyboardOutput) -> <&'i KeyboardOutput as Sub>::Output
fn sub(self, other: &'i KeyboardOutput) -> <&'i KeyboardOutput as Sub>::Output
Performs the
-
operation. Read moreimpl Copy for KeyboardOutput
Auto Trait Implementations§
impl Freeze for KeyboardOutput
impl RefUnwindSafe for KeyboardOutput
impl Send for KeyboardOutput
impl Sync for KeyboardOutput
impl Unpin for KeyboardOutput
impl UnwindSafe for KeyboardOutput
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