[−][src]Struct keyberon::keyboard::Keyboard
A keyboard HID device.
Implementations
impl<L> Keyboard<L>
[src]
pub fn new(leds: L) -> Keyboard<L>
[src]
Creates a new Keyboard
object.
pub fn set_keyboard_report(&mut self, report: KbHidReport) -> bool
[src]
Set the current keyboard HID report. Returns true
if it is modified.
Trait Implementations
impl<L: Leds> HidDevice for Keyboard<L>
[src]
fn subclass(&self) -> Subclass
[src]
fn protocol(&self) -> Protocol
[src]
fn report_descriptor(&self) -> &[u8]
[src]
fn get_report(
&mut self,
report_type: ReportType,
_report_id: u8
) -> Result<&[u8], ()>
[src]
&mut self,
report_type: ReportType,
_report_id: u8
) -> Result<&[u8], ()>
fn set_report(
&mut self,
report_type: ReportType,
report_id: u8,
data: &[u8]
) -> Result<(), ()>
[src]
&mut self,
report_type: ReportType,
report_id: u8,
data: &[u8]
) -> Result<(), ()>
Auto Trait Implementations
impl<L> Send for Keyboard<L> where
L: Send,
L: Send,
impl<L> Sync for Keyboard<L> where
L: Sync,
L: Sync,
impl<L> Unpin for Keyboard<L> where
L: Unpin,
L: Unpin,
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>,