pub trait EventTracker {
// Required methods
fn track_event(
&self,
name: &str,
props: Option<Value>,
) -> Result<(), String>;
fn flush_events_blocking(&self);
}Expand description
Trait implemented by Tauri handlers.
Required Methods§
Sourcefn track_event(&self, name: &str, props: Option<Value>) -> Result<(), String>
fn track_event(&self, name: &str, props: Option<Value>) -> Result<(), String>
Enqueues an event to be sent to the backend.
Sourcefn flush_events_blocking(&self)
fn flush_events_blocking(&self)
Flushes the event queue, blocking the current thread.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".