#[non_exhaustive]pub enum Event<'a> {
Report(Report<'a>),
Query,
Capabilities(Capabilities<'a>),
}Expand description
A recognized protocol event.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Report(Report<'a>)
A valid report, ready to apply atomically.
Query
Bare ?: a query when read from a program, or a default reply from a terminal.
Direction is deliberately left to the caller because the bytes are identical.
Capabilities(Capabilities<'a>)
A feature reply with extension pairs.
Trait Implementations§
impl<'a> Copy for Event<'a>
impl<'a> Eq for Event<'a>
impl<'a> StructuralPartialEq for Event<'a>
Auto Trait Implementations§
impl<'a> Freeze for Event<'a>
impl<'a> RefUnwindSafe for Event<'a>
impl<'a> Send for Event<'a>
impl<'a> Sync for Event<'a>
impl<'a> Unpin for Event<'a>
impl<'a> UnsafeUnpin for Event<'a>
impl<'a> UnwindSafe for Event<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more