Struct evtc::weapon::WeaponSwapEvent
source · pub struct WeaponSwapEvent {
pub time: u64,
pub agent: AgentId,
pub weapon_set: WeaponSet,
}
Expand description
Active weapon set changed.
Fields§
§time: u64
Time of registering the weapon swap.
agent: AgentId
Agent that swapped weapon sets.
weapon_set: WeaponSet
New weapon set.
Trait Implementations§
source§impl Clone for WeaponSwapEvent
impl Clone for WeaponSwapEvent
source§fn clone(&self) -> WeaponSwapEvent
fn clone(&self) -> WeaponSwapEvent
Returns a copy 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 WeaponSwapEvent
impl Debug for WeaponSwapEvent
source§impl<'de> Deserialize<'de> for WeaponSwapEvent
impl<'de> Deserialize<'de> for WeaponSwapEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Extract for WeaponSwapEvent
impl Extract for WeaponSwapEvent
source§impl Serialize for WeaponSwapEvent
impl Serialize for WeaponSwapEvent
source§impl TryExtract for WeaponSwapEvent
impl TryExtract for WeaponSwapEvent
Auto Trait Implementations§
impl Freeze for WeaponSwapEvent
impl RefUnwindSafe for WeaponSwapEvent
impl Send for WeaponSwapEvent
impl Sync for WeaponSwapEvent
impl Unpin for WeaponSwapEvent
impl UnwindSafe for WeaponSwapEvent
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