Enum airmash_protocol::KeyCode
source · [−]#[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 -> server communication.
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.
Up
Down
Left
Right
Fire
Special
Unknown(u8)
Trait Implementations
sourceimpl<'de> DeserializeV5<'de> for KeyCode
impl<'de> DeserializeV5<'de> for KeyCode
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self, Error>
sourceimpl SerializeV5 for KeyCode
impl SerializeV5 for KeyCode
impl Copy for KeyCode
impl Eq for KeyCode
impl StructuralEq for KeyCode
impl StructuralPartialEq for KeyCode
Auto Trait Implementations
impl RefUnwindSafe for KeyCode
impl Send for KeyCode
impl Sync for KeyCode
impl Unpin for KeyCode
impl UnwindSafe for KeyCode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more