pub struct ServerKeyState {
pub up: bool,
pub down: bool,
pub left: bool,
pub right: bool,
pub boost: bool,
pub strafe: bool,
pub stealth: bool,
pub flagspeed: bool,
}Expand description
All possible “keys” that a player can have activated.
Fields§
§up: bool§down: bool§left: bool§right: bool§boost: bool§strafe: bool§stealth: bool§flagspeed: boolTrait Implementations§
Source§impl Clone for ServerKeyState
impl Clone for ServerKeyState
Source§fn clone(&self) -> ServerKeyState
fn clone(&self) -> ServerKeyState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerKeyState
impl Debug for ServerKeyState
Source§impl Default for ServerKeyState
impl Default for ServerKeyState
Source§fn default() -> ServerKeyState
fn default() -> ServerKeyState
Returns the “default value” for a type. Read more
Source§impl<'de> DeserializeV5<'de> for ServerKeyState
impl<'de> DeserializeV5<'de> for ServerKeyState
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self>
Source§impl Hash for ServerKeyState
impl Hash for ServerKeyState
Source§impl PartialEq for ServerKeyState
impl PartialEq for ServerKeyState
Source§impl SerializeV5 for ServerKeyState
impl SerializeV5 for ServerKeyState
fn serialize(&self, ser: &mut AirmashSerializerV5<'_>) -> Result
impl Copy for ServerKeyState
impl Eq for ServerKeyState
impl StructuralPartialEq for ServerKeyState
Auto Trait Implementations§
impl Freeze for ServerKeyState
impl RefUnwindSafe for ServerKeyState
impl Send for ServerKeyState
impl Sync for ServerKeyState
impl Unpin for ServerKeyState
impl UnwindSafe for ServerKeyState
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