Struct airmash_protocol::client::Key[][src]

pub struct Key {
    pub seq: u32,
    pub key: KeyCode,
    pub state: bool,
}

Send a key update for the client.

Notes:

  • seq should be monotonically increasing with every key press.
  • state: true -> pressed, false -> released.

Fields

Trait Implementations

impl Copy for Key
[src]

impl Clone for Key
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Key
[src]

Formats the value using the given formatter. Read more

impl From<Key> for ClientPacket
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Key

impl Sync for Key