Skip to main content

PlayerExt

Trait PlayerExt 

Source
pub trait PlayerExt<R: Runtime> {
    // Required method
    fn player(&self) -> &Player<R>;
}
Expand description

Extensions to tauri::App, tauri::AppHandle and tauri::Window to access the player APIs.

Required Methods§

Source

fn player(&self) -> &Player<R>

Gets a reference to the player instance.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<R: Runtime, T: Manager<R>> PlayerExt<R> for T