pub struct AnalyticsHandle { /* private fields */ }Implementations§
Source§impl AnalyticsHandle
impl AnalyticsHandle
pub fn disabled() -> Self
pub fn from_config(config: &ServerConfig) -> Self
pub fn events_enabled(&self) -> bool
pub fn capture_enabled(&self) -> bool
pub fn emit(&self, event: AnalyticsEvent)
pub fn capture_envelope( &self, game_id: &str, from_player: &str, envelope: &Value, client_rtt_ms: Option<u32>, )
Trait Implementations§
Source§impl Clone for AnalyticsHandle
impl Clone for AnalyticsHandle
Source§fn clone(&self) -> AnalyticsHandle
fn clone(&self) -> AnalyticsHandle
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 moreAuto Trait Implementations§
impl Freeze for AnalyticsHandle
impl RefUnwindSafe for AnalyticsHandle
impl Send for AnalyticsHandle
impl Sync for AnalyticsHandle
impl Unpin for AnalyticsHandle
impl UnsafeUnpin for AnalyticsHandle
impl UnwindSafe for AnalyticsHandle
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