Struct airmash_protocol::ServerKeyState
source · [−]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: bool
Trait Implementations
sourceimpl Clone for ServerKeyState
impl Clone for ServerKeyState
sourcefn clone(&self) -> ServerKeyState
fn clone(&self) -> ServerKeyState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ServerKeyState
impl Debug for ServerKeyState
sourceimpl Default for ServerKeyState
impl Default for ServerKeyState
sourcefn default() -> ServerKeyState
fn default() -> ServerKeyState
Returns the “default value” for a type. Read more
sourceimpl<'de> DeserializeV5<'de> for ServerKeyState
impl<'de> DeserializeV5<'de> for ServerKeyState
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self>
sourceimpl Hash for ServerKeyState
impl Hash for ServerKeyState
sourceimpl PartialEq<ServerKeyState> for ServerKeyState
impl PartialEq<ServerKeyState> for ServerKeyState
sourcefn eq(&self, other: &ServerKeyState) -> bool
fn eq(&self, other: &ServerKeyState) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ServerKeyState) -> bool
fn ne(&self, other: &ServerKeyState) -> bool
This method tests for !=
.
sourceimpl SerializeV5 for ServerKeyState
impl SerializeV5 for ServerKeyState
fn serialize(&self, ser: &mut AirmashSerializerV5<'_>) -> Result
impl Copy for ServerKeyState
impl Eq for ServerKeyState
impl StructuralEq for ServerKeyState
impl StructuralPartialEq for ServerKeyState
Auto Trait Implementations
impl RefUnwindSafe for ServerKeyState
impl Send for ServerKeyState
impl Sync for ServerKeyState
impl Unpin for ServerKeyState
impl UnwindSafe for ServerKeyState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more