Skip to main content

ControlEventHandler

Trait ControlEventHandler 

Source
pub trait ControlEventHandler {
Show 33 methods // Provided methods fn on_load(&mut self, _event: &ParsedCommand) { ... } fn on_play(&mut self, _event: &ParsedCommand) { ... } fn on_pause(&mut self, _event: &ParsedCommand) { ... } fn on_quit(&mut self, _event: &ParsedCommand) { ... } fn on_terminate(&mut self, _event: &ParsedCommand) { ... } fn on_mainview(&mut self, _event: &ParsedCommand) { ... } fn on_next(&mut self, _event: &ParsedCommand) { ... } fn on_prev(&mut self, _event: &ParsedCommand) { ... } fn on_goto(&mut self, _event: &ParsedCommand) { ... } fn on_label(&mut self, _event: &ParsedCommand) { ... } fn on_loop(&mut self, _event: &ParsedCommand) { ... } fn on_clear_loop(&mut self, _event: &ParsedCommand) { ... } fn on_volume(&mut self, _event: &ParsedCommand) { ... } fn on_volume_up(&mut self, _event: &ParsedCommand) { ... } fn on_volume_down(&mut self, _event: &ParsedCommand) { ... } fn on_mute(&mut self, _event: &ParsedCommand) { ... } fn on_unmute(&mut self, _event: &ParsedCommand) { ... } fn on_gain(&mut self, _event: &ParsedCommand) { ... } fn on_pitch(&mut self, _event: &ParsedCommand) { ... } fn on_cut(&mut self, _event: &ParsedCommand) { ... } fn on_rec(&mut self, _event: &ParsedCommand) { ... } fn on_mic(&mut self, _event: &ParsedCommand) { ... } fn on_save(&mut self, _event: &ParsedCommand) { ... } fn on_playlist(&mut self, _event: &ParsedCommand) { ... } fn on_playlist_top(&mut self, _event: &ParsedCommand) { ... } fn on_playlist_bottom(&mut self, _event: &ParsedCommand) { ... } fn on_playlist_up(&mut self, _event: &ParsedCommand) { ... } fn on_playlist_down(&mut self, _event: &ParsedCommand) { ... } fn on_webradio(&mut self, _event: &ParsedCommand) { ... } fn on_scope(&mut self, _event: &ParsedCommand) { ... } fn on_spectro(&mut self, _event: &ParsedCommand) { ... } fn on_transcribe(&mut self, _event: &ParsedCommand) { ... } fn on_help(&mut self, _event: &ParsedCommand) { ... }
}
Expand description

Event sink implemented by the UI or a future playback backend.

Provided Methods§

Source

fn on_load(&mut self, _event: &ParsedCommand)

Source

fn on_play(&mut self, _event: &ParsedCommand)

Source

fn on_pause(&mut self, _event: &ParsedCommand)

Source

fn on_quit(&mut self, _event: &ParsedCommand)

Source

fn on_terminate(&mut self, _event: &ParsedCommand)

Source

fn on_mainview(&mut self, _event: &ParsedCommand)

Source

fn on_next(&mut self, _event: &ParsedCommand)

Source

fn on_prev(&mut self, _event: &ParsedCommand)

Source

fn on_goto(&mut self, _event: &ParsedCommand)

Source

fn on_label(&mut self, _event: &ParsedCommand)

Source

fn on_loop(&mut self, _event: &ParsedCommand)

Source

fn on_clear_loop(&mut self, _event: &ParsedCommand)

Source

fn on_volume(&mut self, _event: &ParsedCommand)

Source

fn on_volume_up(&mut self, _event: &ParsedCommand)

Source

fn on_volume_down(&mut self, _event: &ParsedCommand)

Source

fn on_mute(&mut self, _event: &ParsedCommand)

Source

fn on_unmute(&mut self, _event: &ParsedCommand)

Source

fn on_gain(&mut self, _event: &ParsedCommand)

Source

fn on_pitch(&mut self, _event: &ParsedCommand)

Source

fn on_cut(&mut self, _event: &ParsedCommand)

Source

fn on_rec(&mut self, _event: &ParsedCommand)

Source

fn on_mic(&mut self, _event: &ParsedCommand)

Source

fn on_save(&mut self, _event: &ParsedCommand)

Source

fn on_playlist(&mut self, _event: &ParsedCommand)

Source

fn on_playlist_top(&mut self, _event: &ParsedCommand)

Source

fn on_playlist_bottom(&mut self, _event: &ParsedCommand)

Source

fn on_playlist_up(&mut self, _event: &ParsedCommand)

Source

fn on_playlist_down(&mut self, _event: &ParsedCommand)

Source

fn on_webradio(&mut self, _event: &ParsedCommand)

Source

fn on_scope(&mut self, _event: &ParsedCommand)

Source

fn on_spectro(&mut self, _event: &ParsedCommand)

Source

fn on_transcribe(&mut self, _event: &ParsedCommand)

Source

fn on_help(&mut self, _event: &ParsedCommand)

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§