pub enum Command {
EnterRepeated(Cow<'static, str>, Cow<'static, [u8]>, PlayOptions),
LeaveRepeated(Cow<'static, str>),
PlayOnce(Cow<'static, str>, Cow<'static, [u8]>, PlayOptions),
Pause(Cow<'static, str>),
Resume(Cow<'static, str>),
Clear(Cow<'static, str>),
SetVolume(Cow<'static, str>, u8),
}Variants§
EnterRepeated(Cow<'static, str>, Cow<'static, [u8]>, PlayOptions)
LeaveRepeated(Cow<'static, str>)
PlayOnce(Cow<'static, str>, Cow<'static, [u8]>, PlayOptions)
Pause(Cow<'static, str>)
Resume(Cow<'static, str>)
Clear(Cow<'static, str>)
SetVolume(Cow<'static, str>, u8)
Implementations§
Source§impl Command
impl Command
pub fn new_enter_repeated( name: impl Into<Cow<'static, str>>, bytes: impl Into<Cow<'static, [u8]>>, ) -> Self
pub fn new_enter_repeated_with( name: impl Into<Cow<'static, str>>, bytes: impl Into<Cow<'static, [u8]>>, options: PlayOptions, ) -> Self
pub fn new_leave_repeated(name: impl Into<Cow<'static, str>>) -> Self
pub fn new_play_once( name: impl Into<Cow<'static, str>>, bytes: impl Into<Cow<'static, [u8]>>, ) -> Self
pub fn new_play_once_with( name: impl Into<Cow<'static, str>>, bytes: impl Into<Cow<'static, [u8]>>, options: PlayOptions, ) -> Self
pub fn new_pause(name: impl Into<Cow<'static, str>>) -> Self
pub fn new_resume(name: impl Into<Cow<'static, str>>) -> Self
pub fn new_clear(name: impl Into<Cow<'static, str>>) -> Self
pub fn new_set_volume(name: impl Into<Cow<'static, str>>, level: u8) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnsafeUnpin for Command
impl UnwindSafe for Command
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