pub struct GameStateSnapshot {
pub player_info: Option<PlayerInfo>,
pub club_info: Option<ClubInfo>,
pub mode: Option<ShotDetectionMode>,
}Expand description
Immutable snapshot of the current global state.
Fields§
§player_info: Option<PlayerInfo>§club_info: Option<ClubInfo>§mode: Option<ShotDetectionMode>Trait Implementations§
Source§impl Clone for GameStateSnapshot
impl Clone for GameStateSnapshot
Source§fn clone(&self) -> GameStateSnapshot
fn clone(&self) -> GameStateSnapshot
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 GameStateSnapshot
impl Debug for GameStateSnapshot
Source§impl<'de> Deserialize<'de> for GameStateSnapshot
impl<'de> Deserialize<'de> for GameStateSnapshot
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
Auto Trait Implementations§
impl Freeze for GameStateSnapshot
impl RefUnwindSafe for GameStateSnapshot
impl Send for GameStateSnapshot
impl Sync for GameStateSnapshot
impl Unpin for GameStateSnapshot
impl UnsafeUnpin for GameStateSnapshot
impl UnwindSafe for GameStateSnapshot
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