pub trait InputEventDecoder {
const SIZE: usize;
// Required method
fn decode(data: &[u8]) -> virtio_input_event;
}Expand description
Allows a raw input event of the implementor’s type to be decoded into a virtio_input_event.
Required Associated Constants§
Required Methods§
fn decode(data: &[u8]) -> virtio_input_event
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.