pub struct LivePlayState {
pub gameplay_phase: GameplayPhase,
pub is_live_play: bool,
}Expand description
Shared state describing whether the current frame is live play.
Fields§
§gameplay_phase: GameplayPhase§is_live_play: boolImplementations§
Source§impl LivePlayState
impl LivePlayState
pub fn new(gameplay_phase: GameplayPhase) -> Self
pub fn active_play() -> Self
pub fn counts_toward_player_motion(&self) -> bool
pub fn counts_toward_ball_position_stats(&self) -> bool
Trait Implementations§
Source§impl Clone for LivePlayState
impl Clone for LivePlayState
Source§impl Debug for LivePlayState
impl Debug for LivePlayState
Source§impl Default for LivePlayState
impl Default for LivePlayState
Source§impl<'de> Deserialize<'de> for LivePlayState
impl<'de> Deserialize<'de> for LivePlayState
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
impl Eq for LivePlayState
Source§impl PartialEq for LivePlayState
impl PartialEq for LivePlayState
Source§impl Serialize for LivePlayState
impl Serialize for LivePlayState
impl StructuralPartialEq for LivePlayState
Auto Trait Implementations§
impl Freeze for LivePlayState
impl RefUnwindSafe for LivePlayState
impl Send for LivePlayState
impl Sync for LivePlayState
impl Unpin for LivePlayState
impl UnsafeUnpin for LivePlayState
impl UnwindSafe for LivePlayState
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