Struct async_std_hidg::KeyboardOutput
source · [−]#[repr(C, packed)]pub struct KeyboardOutput { /* private fields */ }
Expand description
Keyboard output report
Implementations
sourceimpl 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 self, other: &'i KeyboardOutput) -> LedStateChanges<'i>ⓘNotable traits for LedStateChanges<'i>impl<'i> Iterator for LedStateChanges<'i> type Item = StateChange<Led>;
pub fn diff(&'i self, other: &'i KeyboardOutput) -> LedStateChanges<'i>ⓘNotable traits for LedStateChanges<'i>impl<'i> Iterator for LedStateChanges<'i> type Item = StateChange<Led>;
Get LED state changes between two reports
Difference of two reports
Trait Implementations
sourceimpl AsMut<[u8]> for KeyboardOutput
impl AsMut<[u8]> for KeyboardOutput
sourceimpl AsRef<[u8]> for KeyboardOutput
impl AsRef<[u8]> for KeyboardOutput
sourceimpl Clone for KeyboardOutput
impl Clone for KeyboardOutput
sourcefn clone(&self) -> KeyboardOutput
fn clone(&self) -> KeyboardOutput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for KeyboardOutput
impl Debug for KeyboardOutput
sourceimpl Default for KeyboardOutput
impl Default for KeyboardOutput
sourcefn default() -> KeyboardOutput
fn default() -> KeyboardOutput
Returns the “default value” for a type. Read more
sourceimpl Extend<KeyboardOutput> for KeyboardOutput
impl Extend<KeyboardOutput> for KeyboardOutput
sourcefn 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
sourcefn 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.
sourcefn 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
sourceimpl Extend<StateChange<Led>> for KeyboardOutput
impl Extend<StateChange<Led>> for KeyboardOutput
sourcefn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = StateChange<Led>>,
fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = StateChange<Led>>,
Extends a collection with the contents of an iterator. Read more
sourcefn 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.
sourcefn 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
sourceimpl Extend<StateChange<Leds>> for KeyboardOutput
impl Extend<StateChange<Leds>> for KeyboardOutput
sourcefn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = StateChange<Leds>>,
fn extend<T>(&mut self, iter: T)where
T: IntoIterator<Item = StateChange<Leds>>,
Extends a collection with the contents of an iterator. Read more
sourcefn 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.
sourcefn 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
sourceimpl<'i> Sub<&'i KeyboardOutput> for &'i KeyboardOutput
impl<'i> Sub<&'i KeyboardOutput> for &'i KeyboardOutput
type Output = LedStateChanges<'i>
type Output = LedStateChanges<'i>
The resulting type after applying the
-
operator.sourcefn sub(
self,
other: &'i KeyboardOutput
) -> <&'i KeyboardOutput as Sub<&'i KeyboardOutput>>::Output
fn sub(
self,
other: &'i KeyboardOutput
) -> <&'i KeyboardOutput as Sub<&'i KeyboardOutput>>::Output
Performs the
-
operation. Read moreimpl Copy for KeyboardOutput
Auto Trait Implementations
impl RefUnwindSafe for KeyboardOutput
impl Send for KeyboardOutput
impl Sync for KeyboardOutput
impl Unpin for KeyboardOutput
impl UnwindSafe for KeyboardOutput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more