Skip to main content

OutputDev

Trait OutputDev 

Source
pub trait OutputDev: Dev {
    const OUT_LEN: u8;

    // Required methods
    fn set_output(&mut self, v: &[u8]);
    fn output(&self) -> &[u8] ;
}
Expand description

HID that receives output reports.

Required Associated Constants§

Source

const OUT_LEN: u8

Length of the slice expected by Self::set_output().

Required Methods§

Source

fn set_output(&mut self, v: &[u8])

Sets the current output report.

Source

fn output(&self) -> &[u8]

Returns the current output report.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§