pub struct Analytics { /* private fields */ }Implementations§
Source§impl Analytics
impl Analytics
Sourcepub fn new(tick: Duration) -> Result<Self, AnalyticsError>
pub fn new(tick: Duration) -> Result<Self, AnalyticsError>
Initialize an analytics pipeline which flushes events every tick.
pub fn config(&self) -> &Config
Sourcepub fn record<E: Event>(&self, event: E)
pub fn record<E: Event>(&self, event: E)
Record a single event.
The event is constructed using the implementations of Event and Properties.
The event’s properties will be extended with an event_id.
Auto Trait Implementations§
impl !Freeze for Analytics
impl RefUnwindSafe for Analytics
impl Send for Analytics
impl Sync for Analytics
impl Unpin for Analytics
impl UnwindSafe for Analytics
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