#[non_exhaustive]pub enum KeyCode {
Up,
Down,
Left,
Right,
Fire,
Special,
Unknown(u8),
}Expand description
The key that’s had it’s state changed.
This is only used for client to server communication. For communications
back from server to client see ServerKeyState.
It is used in the following packets:
- TODO
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.
Trait Implementations§
Source§impl<'de> DeserializeV5<'de> for KeyCode
impl<'de> DeserializeV5<'de> for KeyCode
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self, Error>
Source§impl SerializeV5 for KeyCode
impl SerializeV5 for KeyCode
impl Copy for KeyCode
impl Eq for KeyCode
impl StructuralPartialEq for KeyCode
Auto Trait Implementations§
impl Freeze for KeyCode
impl RefUnwindSafe for KeyCode
impl Send for KeyCode
impl Sync for KeyCode
impl Unpin for KeyCode
impl UnwindSafe for KeyCode
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