pub trait PlayerEventEmitter: Send + Sync {
// Required method
fn emit(&self, event: PlayerStatusEvent);
}Expand description
Trait for emitting player events to the frontend.
This abstraction allows backends to emit events without depending directly on Tauri, making them easier to test.
Required Methods§
Sourcefn emit(&self, event: PlayerStatusEvent)
fn emit(&self, event: PlayerStatusEvent)
Emit a player status event to the frontend