pub struct TauriEventEmitter {
app_handle: AppHandle,
}Expand description
Tauri-based implementation of PlayerEventEmitter.
Uses Tauri’s AppHandle::emit() to broadcast events to all windows.
Fields§
§app_handle: AppHandleImplementations§
Trait Implementations§
Source§impl PlayerEventEmitter for TauriEventEmitter
impl PlayerEventEmitter for TauriEventEmitter
Source§fn emit(&self, event: PlayerStatusEvent)
fn emit(&self, event: PlayerStatusEvent)
Emit a player status event to the frontend
Auto Trait Implementations§
impl Freeze for TauriEventEmitter
impl !RefUnwindSafe for TauriEventEmitter
impl Send for TauriEventEmitter
impl Sync for TauriEventEmitter
impl Unpin for TauriEventEmitter
impl UnsafeUnpin for TauriEventEmitter
impl !UnwindSafe for TauriEventEmitter
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