Enum airmash_protocol::KeyCode[][src]

pub enum KeyCode {
    Up,
    Down,
    Left,
    Right,
    Fire,
    Special,
}

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

Trait Implementations

impl Copy for KeyCode
[src]

impl Clone for KeyCode
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for KeyCode
[src]

Formats the value using the given formatter. Read more

impl Hash for KeyCode
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Eq for KeyCode
[src]

impl PartialEq for KeyCode
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Component for KeyCode
[src]

Associated storage type for this component.

impl TryFrom<u8> for KeyCode
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl From<KeyCode> for u8
[src]

Performs the conversion.

impl TryFrom<u16> for KeyCode
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl From<KeyCode> for u16
[src]

Performs the conversion.

impl TryFrom<u32> for KeyCode
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl From<KeyCode> for u32
[src]

Performs the conversion.

impl TryFrom<i8> for KeyCode
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl From<KeyCode> for i8
[src]

Performs the conversion.

impl TryFrom<i16> for KeyCode
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl From<KeyCode> for i16
[src]

Performs the conversion.

impl TryFrom<i32> for KeyCode
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl From<KeyCode> for i32
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for KeyCode

impl Sync for KeyCode