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§
Auto 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