Skip to main content

AnalyticsEvent

Enum AnalyticsEvent 

Source
pub enum AnalyticsEvent {
    ClientConnected {
        ts: String,
        username: String,
        platform: String,
        version: Option<String>,
        reconnected: bool,
        engine_gate: String,
    },
    GameStarted {
        ts: String,
        game_id: String,
        room_id: String,
        format: GameFormat,
        engine: EngineKind,
        hosted: bool,
        official: bool,
        table_style: Option<String>,
        starting_life: i32,
        players: Vec<SeatInfo>,
    },
    GameEnded {
        ts: String,
        game_id: String,
        room_id: String,
        reason: GameEndReason,
        duration_s: f64,
        game_over: bool,
        winner: Option<String>,
        conceded: Vec<String>,
        fatal_message: Option<String>,
        reported: bool,
        turns: Option<u32>,
    },
    TransportUsed {
        ts: String,
        room_id: String,
        game_id: String,
        host: String,
        seats: Vec<SeatTransportReport>,
    },
    PlaneQuality {
        ts: String,
        room_id: Option<String>,
        username: String,
        peer: String,
        plane: String,
        outcome: String,
        phase: String,
        connect_ms: Option<u32>,
        rtt_ms: Option<u32>,
        relay_rtt_ms: Option<u32>,
        candidate_pair: Option<String>,
    },
    EngineStats {
Show 40 fields ts: String, room_id: Option<String>, username: String, report_id: String, game_id: Option<String>, engine: String, client_version: String, platform: String, format: Option<String>, seats: u32, multiplayer: bool, duration_s: u32, end_reason: String, decisions: u32, turnaround_p50: u32, turnaround_p90: u32, turnaround_max: u32, engine_p50: Option<u32>, engine_p90: Option<u32>, engine_max: Option<u32>, engine_same_p50: Option<u32>, engine_same_p90: Option<u32>, engine_same_max: Option<u32>, engine_cross_p50: Option<u32>, engine_cross_p90: Option<u32>, engine_cross_max: Option<u32>, think_hidden: u32, reply_wait_p50: Option<u32>, reply_wait_p90: Option<u32>, reply_wait_max: Option<u32>, client_work_p50: Option<u32>, client_work_p90: Option<u32>, client_work_max: Option<u32>, engine_bot_p50: Option<u32>, engine_bot_p90: Option<u32>, engine_bot_max: Option<u32>, engine_rules_p50: Option<u32>, engine_rules_p90: Option<u32>, engine_rules_max: Option<u32>, checkpoints: Option<EngineCheckpointStats>,
}, DeckSelected { ts: String, room_id: String, username: String, is_bot: bool, deck_name: String, commander: Option<String>, cards: Vec<CardEntry>, sideboard_count: usize, }, SeatJoined { ts: String, room_id: String, username: String, is_bot: bool, observer: bool, }, SeatLeft { ts: String, room_id: String, username: String, }, }

Variants§

§

ClientConnected

Fields

§username: String
§platform: String
§version: Option<String>

The client’s reported app version. None means a build from before clients reported one, which is the only handle we have on how much of the player base is running a stale install.

§reconnected: bool
§engine_gate: String
§

GameStarted

Fields

§game_id: String
§room_id: String
§format: GameFormat
§engine: EngineKind
§hosted: bool
§official: bool
§table_style: Option<String>
§starting_life: i32
§players: Vec<SeatInfo>
§

GameEnded

Fields

§game_id: String
§room_id: String
§duration_s: f64
§game_over: bool
§winner: Option<String>
§conceded: Vec<String>
§fatal_message: Option<String>
§reported: bool

Whether the host filed the outcome; false means the reason is the room lifecycle’s fallback and game_over says nothing.

§turns: Option<u32>
§

TransportUsed

Which seats left the relay’s data plane, as reported by the host.

Fields

§room_id: String
§game_id: String
§host: String
§

PlaneQuality

One end’s account of one direct-plane attempt, whether or not it worked.

Fields

§room_id: Option<String>
§username: String

Relay-attested; never client supplied.

§peer: String

The other end, as the reporter named it.

§plane: String
§outcome: String
§phase: String

settled or measured; a connected peer reports both.

§connect_ms: Option<u32>
§rtt_ms: Option<u32>
§relay_rtt_ms: Option<u32>
§candidate_pair: Option<String>
§

EngineStats

Fields

§room_id: Option<String>

The room the seat was in when the report landed, which at game over is often none: the report outlives the seat’s membership. Nothing downstream reads it, so it stays a breadcrumb rather than a key.

§username: String
§report_id: String
§game_id: Option<String>
§engine: String
§client_version: String
§platform: String
§format: Option<String>
§seats: u32
§multiplayer: bool
§duration_s: u32
§end_reason: String
§decisions: u32
§turnaround_p50: u32
§turnaround_p90: u32
§turnaround_max: u32
§engine_p50: Option<u32>
§engine_p90: Option<u32>
§engine_max: Option<u32>
§engine_same_p50: Option<u32>
§engine_same_p90: Option<u32>
§engine_same_max: Option<u32>
§engine_cross_p50: Option<u32>
§engine_cross_p90: Option<u32>
§engine_cross_max: Option<u32>
§think_hidden: u32
§reply_wait_p50: Option<u32>

turnaround cut at the first reply frame reaching the client: server, wire and transfer on one side, parse, apply and render on the other. Absent from clients that predate the cut.

§reply_wait_p90: Option<u32>
§reply_wait_max: Option<u32>
§client_work_p50: Option<u32>
§client_work_p90: Option<u32>
§client_work_max: Option<u32>
§engine_bot_p50: Option<u32>

engine_* split by who owned the time: bot prompts on one side, the rules engine on the other. Absent from an engine that does not tag its windows.

§engine_bot_p90: Option<u32>
§engine_bot_max: Option<u32>
§engine_rules_p50: Option<u32>
§engine_rules_p90: Option<u32>
§engine_rules_max: Option<u32>
§

DeckSelected

Fields

§room_id: String
§username: String
§is_bot: bool
§deck_name: String
§commander: Option<String>
§sideboard_count: usize
§

SeatJoined

Fields

§room_id: String
§username: String
§is_bot: bool
§observer: bool
§

SeatLeft

Fields

§room_id: String
§username: String

Trait Implementations§

Source§

impl Debug for AnalyticsEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for AnalyticsEvent

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<A, B, T> HttpServerConnExec<A, B> for T
where B: Body,

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more