Enum input_event::Event
source · pub enum Event {
Pointer(PointerEvent),
Keyboard(KeyboardEvent),
Enter(),
Leave(),
Ping(),
Pong(),
Disconnect(),
}Variants§
Pointer(PointerEvent)
pointer event (motion / button / axis)
Keyboard(KeyboardEvent)
keyboard events (key / modifiers)
Enter()
enter event: request to enter a client. The client must release the pointer if it is grabbed and reply with a leave event, as soon as its ready to receive events
Leave()
leave event: this client is now ready to receive events and will not send any events after until it sends an enter event
Ping()
ping a client, to see if it is still alive. A client that does not respond with a pong event will be assumed to be offline.
Pong()
response to a ping event: this event signals that a client is still alive but must otherwise be ignored
Disconnect()
explicit disconnect request. The client will no longer send events until the next Enter event. All of its keys should be released.
Implementations§
Trait Implementations§
source§impl TryFrom<Vec<u8>> for Event
impl TryFrom<Vec<u8>> for Event
§type Error = ProtocolError
type Error = ProtocolError
The type returned in the event of a conversion error.
impl Copy for Event
impl StructuralPartialEq for Event
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)