Skip to main content

EventTracker

Trait EventTracker 

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

Source

fn track_event(&self, name: &str, props: Option<Value>) -> Result<(), String>

Enqueues an event to be sent to the backend.

Source

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".

Implementations on Foreign Types§

Source§

impl EventTracker for App

Source§

impl EventTracker for AppHandle

Source§

impl EventTracker for Window

Implementors§