pub enum QueueMessage {
GetQueue(Sender<VecDeque<TrackInQueue>>),
GetTrack(usize, Sender<Option<TrackInQueue>>),
GetCount(Sender<usize>),
PushToBack(TrackInQueue),
PushToFront(TrackInQueue),
Insert(usize, TrackInQueue),
Remove(usize),
Clear,
Replace(VecDeque<TrackInQueue>),
Append(VecDeque<TrackInQueue>),
Swap(usize, TrackInQueue),
}
Variants§
GetQueue(Sender<VecDeque<TrackInQueue>>)
Clone the entire queue and return it.
GetTrack(usize, Sender<Option<TrackInQueue>>)
Get the track at a specific index.
GetCount(Sender<usize>)
Get the length of the queue
PushToBack(TrackInQueue)
Add a track to the end of the queue.
PushToFront(TrackInQueue)
Add a track to the start of the queue.
Insert(usize, TrackInQueue)
Insert a track to a specific position in the queue.
Remove(usize)
Remove a track from the queue.
Clear
Clear the queue.
Replace(VecDeque<TrackInQueue>)
Replace the entire queue with another one.
Append(VecDeque<TrackInQueue>)
Append a queue to the end of the current one.
Swap(usize, TrackInQueue)
Swap the track at the index with the new track.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QueueMessage
impl !RefUnwindSafe for QueueMessage
impl Send for QueueMessage
impl !Sync for QueueMessage
impl Unpin for QueueMessage
impl !UnwindSafe for QueueMessage
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