pub struct Queue<'a> { /* private fields */ }Implementations§
Source§impl<'a> Queue<'a>
impl<'a> Queue<'a>
pub async fn data(&self) -> AsyncRwLockReadGuard<'a, Vec<SongInfo>>
pub async fn save( &mut self, name: impl Into<String>, ) -> Result<(), CommandError>
pub async fn play(&mut self, idx: usize) -> Result<(), CommandError>
pub async fn remove(&mut self, idx: usize) -> Result<(), CommandError>
pub async fn clear(&mut self) -> Result<(), CommandError>
Auto Trait Implementations§
impl<'a> Freeze for Queue<'a>
impl<'a> !RefUnwindSafe for Queue<'a>
impl<'a> Send for Queue<'a>
impl<'a> Sync for Queue<'a>
impl<'a> Unpin for Queue<'a>
impl<'a> !UnwindSafe for Queue<'a>
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