#[non_exhaustive]pub enum Event {
Destroyed {
serial: u32,
},
Scroll {
x: f32,
y: f32,
},
ScrollDiscrete {
x: i32,
y: i32,
},
ScrollStop {
x: u32,
y: u32,
is_cancel: u32,
},
}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.
Destroyed
This object has been removed and a client should release all associated resources.
This object will be destroyed by the EIS implementation immmediately after after this event is sent and as such the client must not attempt to use it after that point.
Scroll
See the ei_scroll.scroll request for details.
It is a protocol violation to send this request for a client
of an ei_handshake.context_type other than receiver.
ScrollDiscrete
See the ei_scroll.scroll_discrete request for details.
It is a protocol violation to send this request for a client
of an ei_handshake.context_type other than receiver.
ScrollStop
See the ei_scroll.scroll_stop request for details.
It is a protocol violation to send this request for a client
of an ei_handshake.context_type other than receiver.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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