pub enum ProtoEvent {
Enter(u32),
Leave(u32),
Ack(u32),
Input(Event),
Ping,
Pong,
}Expand description
main lan-mouse protocol event type
Variants§
Enter(u32)
notify a client that the cursor entered its region
ProtoEvent::Ack with the same serial is used for synchronization between devices
Leave(u32)
notify a client that the cursor left its region
ProtoEvent::Ack with the same serial is used for synchronization between devices
Ack(u32)
acknowledge of an ProtoEvent::Enter or ProtoEvent::Leave event
Input(Event)
Input event
Ping
Ping event for tracking unresponsive clients.
A client has to respond with ProtoEvent::Pong.
Pong
Response to ProtoEvent::Ping
Trait Implementations§
Source§impl Clone for ProtoEvent
impl Clone for ProtoEvent
Source§fn clone(&self) -> ProtoEvent
fn clone(&self) -> ProtoEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProtoEvent
impl Debug for ProtoEvent
Source§impl Display for ProtoEvent
impl Display for ProtoEvent
Source§impl From<ProtoEvent> for ([u8; 21], usize)
impl From<ProtoEvent> for ([u8; 21], usize)
Source§fn from(event: ProtoEvent) -> Self
fn from(event: ProtoEvent) -> Self
Converts to this type from the input type.
impl Copy for ProtoEvent
Auto Trait Implementations§
impl Freeze for ProtoEvent
impl RefUnwindSafe for ProtoEvent
impl Send for ProtoEvent
impl Sync for ProtoEvent
impl Unpin for ProtoEvent
impl UnwindSafe for ProtoEvent
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