[−][src]Struct keyberon::key_code::KbHidReport
A standard keyboard USB HID report.
It can handle any modifier and 6 keys.
Implementations
impl KbHidReport
[src]
pub fn as_bytes(&self) -> &[u8]
[src]
Returns the byte slice corresponding to the report.
pub fn pressed(&mut self, kc: KeyCode)
[src]
Add the given key code to the report. If the report is full,
it will be setted to ErrorRollOver
.
Trait Implementations
impl Clone for KbHidReport
[src]
fn clone(&self) -> KbHidReport
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for KbHidReport
[src]
impl Default for KbHidReport
[src]
fn default() -> KbHidReport
[src]
impl Eq for KbHidReport
[src]
impl FromIterator<KeyCode> for KbHidReport
[src]
fn from_iter<T>(iter: T) -> Self where
T: IntoIterator<Item = KeyCode>,
[src]
T: IntoIterator<Item = KeyCode>,
impl PartialEq<KbHidReport> for KbHidReport
[src]
fn eq(&self, other: &KbHidReport) -> bool
[src]
fn ne(&self, other: &KbHidReport) -> bool
[src]
impl StructuralEq for KbHidReport
[src]
impl StructuralPartialEq for KbHidReport
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,