Skip to main content

## PlayerEventEmitter

# Trait PlayerEventEmitter

Source

    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§

Source

#### fn emit(&self, event: PlayerStatusEvent)

Emit a player status event to the frontend

## Implementors§

Source §

### impl PlayerEventEmitter for TauriEventEmitter