pub struct GleanTracker { /* private fields */ }Implementations§
Source§impl GleanTracker
impl GleanTracker
pub fn new() -> Self
pub fn track(&self, event: AnalyticsEvent)
pub fn is_enabled(&self) -> bool
pub fn set_enabled(&self, enabled: bool)
pub fn event_count(&self) -> u64
Trait Implementations§
Source§impl Debug for GleanTracker
impl Debug for GleanTracker
Source§impl Default for GleanTracker
impl Default for GleanTracker
Source§fn default() -> GleanTracker
fn default() -> GleanTracker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for GleanTracker
impl RefUnwindSafe for GleanTracker
impl Send for GleanTracker
impl Sync for GleanTracker
impl Unpin for GleanTracker
impl UnsafeUnpin for GleanTracker
impl UnwindSafe for GleanTracker
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