pub struct MatchStateEvent { /* private fields */ }Expand description
Match room state transitions.
Parsed from matchGameRoomStateChangedEvent entries. Signals match
start/end and triggers overlay state transitions.
Implementations§
Source§impl MatchStateEvent
impl MatchStateEvent
Sourcepub fn new(metadata: EventMetadata, payload: Value) -> Self
pub fn new(metadata: EventMetadata, payload: Value) -> Self
Constructs a new event with the given metadata and payload.
Sourcepub fn metadata(&self) -> &EventMetadata
pub fn metadata(&self) -> &EventMetadata
Returns the shared event metadata.
Trait Implementations§
Source§impl Clone for MatchStateEvent
impl Clone for MatchStateEvent
Source§fn clone(&self) -> MatchStateEvent
fn clone(&self) -> MatchStateEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MatchStateEvent
impl Debug for MatchStateEvent
Source§impl<'de> Deserialize<'de> for MatchStateEvent
impl<'de> Deserialize<'de> for MatchStateEvent
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 PartialEq for MatchStateEvent
impl PartialEq for MatchStateEvent
Source§fn eq(&self, other: &MatchStateEvent) -> bool
fn eq(&self, other: &MatchStateEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MatchStateEvent
impl Serialize for MatchStateEvent
impl StructuralPartialEq for MatchStateEvent
Auto Trait Implementations§
impl Freeze for MatchStateEvent
impl RefUnwindSafe for MatchStateEvent
impl Send for MatchStateEvent
impl Sync for MatchStateEvent
impl Unpin for MatchStateEvent
impl UnsafeUnpin for MatchStateEvent
impl UnwindSafe for MatchStateEvent
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