pub enum MediaCommand {
Play,
Pause,
Toggle,
Stop,
Next,
Previous,
Seek(f64),
}Expand description
O que o sistema pede ao app (as teclas de mídia, os botões do painel e do fone).
Variants§
Play
Pause
Toggle
Tocar ou pausar (a tecla única dos teclados).
Stop
Next
Previous
Seek(f64)
Ir para a posição, em segundos.
Implementations§
Trait Implementations§
Source§impl Clone for MediaCommand
impl Clone for MediaCommand
impl Copy for MediaCommand
Source§impl Debug for MediaCommand
impl Debug for MediaCommand
Source§impl PartialEq for MediaCommand
impl PartialEq for MediaCommand
impl StructuralPartialEq for MediaCommand
Auto Trait Implementations§
impl Forget for MediaCommand
impl Freeze for MediaCommand
impl Move for MediaCommand
impl RefUnwindSafe for MediaCommand
impl Send for MediaCommand
impl Sync for MediaCommand
impl Unpin for MediaCommand
impl UnsafeUnpin for MediaCommand
impl UnwindSafe for MediaCommand
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