Enum uhid_virt::OutputEvent[][src]

pub enum OutputEvent {
    Start {
        dev_flags: Vec<DevFlags>,
    },
    Stop,
    Open,
    Close,
    Output {
        data: Vec<u8>,
    },
    GetReport {
        id: u32,
        report_number: u8,
        report_type: ReportType,
    },
    SetReport {
        id: u32,
        report_number: u8,
        report_type: ReportType,
        data: Vec<u8>,
    },
}

See https://www.kernel.org/doc/html/latest/hid/uhid.html#read

Variants

Start

Fields of Start

dev_flags: Vec<DevFlags>
Stop
Open
Close
Output

Fields of Output

data: Vec<u8>
GetReport

Fields of GetReport

id: u32report_number: u8report_type: ReportType
SetReport

Fields of SetReport

id: u32report_number: u8report_type: ReportTypedata: Vec<u8>

Trait Implementations

impl TryFrom<[u8; 4380]> for OutputEvent[src]

type Error = StreamError

The type returned in the event of a conversion error.

impl TryFrom<uhid_event> for OutputEvent[src]

type Error = StreamError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for OutputEvent

impl Send for OutputEvent

impl Sync for OutputEvent

impl Unpin for OutputEvent

impl UnwindSafe for OutputEvent

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.