pub enum QueueCommand {
PlayNextSong,
SkipForward(usize),
SkipBackward(usize),
SetPosition(usize),
Shuffle,
AddToQueue(OneOrMany<SongBrief>),
RemoveRange(Range<usize>),
Clear,
SetRepeatMode(RepeatMode),
}Expand description
Queue Commands
Variants§
PlayNextSong
used by the Duration Watcher to signal the player to start the next song,
this is distinct from calling SkipForward(1) in that if the RepeatMode is RepeatMode::One the song will be restarted
SkipForward(usize)
Skip forward in the queue by n items
SkipBackward(usize)
Skip backward in the queue by n items
SetPosition(usize)
Set the position in the queue to n
Shuffle
Shuffle the queue
AddToQueue(OneOrMany<SongBrief>)
Add a song to the queue
RemoveRange(Range<usize>)
Remove a range of items from the queue
Clear
Clear the queue
SetRepeatMode(RepeatMode)
Set the repeat mode
Trait Implementations§
Source§impl Clone for QueueCommand
impl Clone for QueueCommand
Source§fn clone(&self) -> QueueCommand
fn clone(&self) -> QueueCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QueueCommand
impl Debug for QueueCommand
Source§impl Display for QueueCommand
impl Display for QueueCommand
Source§impl PartialEq for QueueCommand
impl PartialEq for QueueCommand
impl Eq for QueueCommand
impl StructuralPartialEq for QueueCommand
Auto Trait Implementations§
impl Freeze for QueueCommand
impl RefUnwindSafe for QueueCommand
impl Send for QueueCommand
impl Sync for QueueCommand
impl Unpin for QueueCommand
impl UnwindSafe for QueueCommand
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