pub enum EventError {
NotAnEvent,
UnknownCommand,
NeedsStringSection,
}Expand description
Error decoding a raw-input event from an opcode.
Variants§
NotAnEvent
The opcode is not an EVENT category opcode.
UnknownCommand
The opcode is an EVENT category opcode but an unknown command.
NeedsStringSection
The opcode is TEXT_CHANGED, which needs the batch’s string section to
resolve its text; decode it with pathland-core-transport::decode_events
instead of a bare opcode.
Trait Implementations§
Source§impl Clone for EventError
impl Clone for EventError
impl Copy for EventError
Source§impl Debug for EventError
impl Debug for EventError
impl Eq for EventError
Source§impl PartialEq for EventError
impl PartialEq for EventError
impl StructuralPartialEq for EventError
Auto Trait Implementations§
impl Forget for EventError
impl Freeze for EventError
impl Move for EventError
impl RefUnwindSafe for EventError
impl Send for EventError
impl Sync for EventError
impl Unpin for EventError
impl UnsafeUnpin for EventError
impl UnwindSafe for EventError
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