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
UpDownLeftRightFireSpecial
Trait Implementations
impl Copy for KeyCode[src]
impl Copy for KeyCodeimpl Clone for KeyCode[src]
impl Clone for KeyCodefn clone(&self) -> KeyCode[src]
fn clone(&self) -> KeyCodeReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Debug for KeyCode[src]
impl Debug for KeyCodefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Hash for KeyCode[src]
impl Hash for KeyCodefn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Eq for KeyCode[src]
impl Eq for KeyCodeimpl PartialEq for KeyCode[src]
impl PartialEq for KeyCodefn eq(&self, other: &KeyCode) -> bool[src]
fn eq(&self, other: &KeyCode) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Component for KeyCode[src]
impl Component for KeyCodetype Storage = DenseVecStorage<Self>
Associated storage type for this component.
impl TryFrom<u8> for KeyCode[src]
impl TryFrom<u8> for KeyCodetype Error = EnumValueOutOfRangeError<u8>
try_from)The type returned in the event of a conversion error.
fn try_from(v: u8) -> Result<Self, Self::Error>[src]
fn try_from(v: u8) -> Result<Self, Self::Error>try_from)Performs the conversion.
impl From<KeyCode> for u8[src]
impl From<KeyCode> for u8impl TryFrom<u16> for KeyCode[src]
impl TryFrom<u16> for KeyCodetype Error = EnumValueOutOfRangeError<u16>
try_from)The type returned in the event of a conversion error.
fn try_from(v: u16) -> Result<Self, Self::Error>[src]
fn try_from(v: u16) -> Result<Self, Self::Error>try_from)Performs the conversion.
impl From<KeyCode> for u16[src]
impl From<KeyCode> for u16impl TryFrom<u32> for KeyCode[src]
impl TryFrom<u32> for KeyCodetype Error = EnumValueOutOfRangeError<u32>
try_from)The type returned in the event of a conversion error.
fn try_from(v: u32) -> Result<Self, Self::Error>[src]
fn try_from(v: u32) -> Result<Self, Self::Error>try_from)Performs the conversion.
impl From<KeyCode> for u32[src]
impl From<KeyCode> for u32impl TryFrom<i8> for KeyCode[src]
impl TryFrom<i8> for KeyCodetype Error = EnumValueOutOfRangeError<i8>
try_from)The type returned in the event of a conversion error.
fn try_from(v: i8) -> Result<Self, Self::Error>[src]
fn try_from(v: i8) -> Result<Self, Self::Error>try_from)Performs the conversion.
impl From<KeyCode> for i8[src]
impl From<KeyCode> for i8impl TryFrom<i16> for KeyCode[src]
impl TryFrom<i16> for KeyCodetype Error = EnumValueOutOfRangeError<i16>
try_from)The type returned in the event of a conversion error.
fn try_from(v: i16) -> Result<Self, Self::Error>[src]
fn try_from(v: i16) -> Result<Self, Self::Error>try_from)Performs the conversion.
impl From<KeyCode> for i16[src]
impl From<KeyCode> for i16impl TryFrom<i32> for KeyCode[src]
impl TryFrom<i32> for KeyCodetype Error = EnumValueOutOfRangeError<i32>
try_from)The type returned in the event of a conversion error.
fn try_from(v: i32) -> Result<Self, Self::Error>[src]
fn try_from(v: i32) -> Result<Self, Self::Error>try_from)Performs the conversion.
impl From<KeyCode> for i32[src]
impl From<KeyCode> for i32