pub struct Key {
pub seq: u32,
pub key: KeyCode,
pub state: bool,
}Expand description
Send a key update for the client.
Notes:
seqshould be monotonically increasing with every key press.state:true-> pressed,false-> released.
Fields§
§seq: u32§key: KeyCode§state: boolTrait Implementations§
Source§impl<'de> DeserializeV5<'de> for Key
impl<'de> DeserializeV5<'de> for Key
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self>
Source§impl From<Key> for ClientPacket
impl From<Key> for ClientPacket
Source§impl SerializeV5 for Key
impl SerializeV5 for Key
fn serialize<'ser>(&self, ser: &mut AirmashSerializerV5<'ser>) -> Result
impl Copy for Key
Auto Trait Implementations§
impl Freeze for Key
impl RefUnwindSafe for Key
impl Send for Key
impl Sync for Key
impl Unpin for Key
impl UnwindSafe for Key
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