#[non_exhaustive]pub enum Request {
Release,
Button {
button: u32,
state: ButtonState,
},
}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.
Release
Notification that the client is no longer interested in this object. The EIS implementation will release any resources related to this object and send the ei_button.destroyed event once complete.
Button
Generate a button event on this pointer.
The button codes must match the defines in linux/input-event-codes.h.
It is a client bug to send more than one button request for the same button within the same ei_device.frame and the EIS implementation may ignore either or all button state changes and/or disconnect the client.
It is a protocol violation to send this request for a client of an ei_handshake.context_type other than sender.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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