pub struct MatchConnectionStateEvent { /* private fields */ }Expand description
Match connection state machine transition event.
Parsed from [UnityCrossThreadLogger]STATE CHANGED {...} entries.
The payload is the JSON object {"old": "<state>", "new": "<state>"}
where each state is one of the values observed in the MTGA match
connection state machine (e.g., None, ConnectedToMatchDoor,
ConnectedToMatchDoor_ConnectingToGRE,
ConnectedToMatchDoor_ConnectedToGRE_Waiting, Playing,
MatchCompleted, Disconnected).
Feeds the desktop connection health monitor; see feature spec
connection-health-indicator.md AC-DET-1.
Implementations§
Source§impl MatchConnectionStateEvent
impl MatchConnectionStateEvent
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 MatchConnectionStateEvent
impl Clone for MatchConnectionStateEvent
Source§fn clone(&self) -> MatchConnectionStateEvent
fn clone(&self) -> MatchConnectionStateEvent
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 MatchConnectionStateEvent
impl Debug for MatchConnectionStateEvent
Source§impl<'de> Deserialize<'de> for MatchConnectionStateEvent
impl<'de> Deserialize<'de> for MatchConnectionStateEvent
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 StructuralPartialEq for MatchConnectionStateEvent
Auto Trait Implementations§
impl Freeze for MatchConnectionStateEvent
impl RefUnwindSafe for MatchConnectionStateEvent
impl Send for MatchConnectionStateEvent
impl Sync for MatchConnectionStateEvent
impl Unpin for MatchConnectionStateEvent
impl UnsafeUnpin for MatchConnectionStateEvent
impl UnwindSafe for MatchConnectionStateEvent
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