Struct tf_playlist::PlaylistManager
source · pub struct PlaylistManager<I, T> { /* private fields */ }
Implementations§
source§impl<I, T> PlaylistManager<I, T>where
I: Hash + Eq + Clone,
T: Hash + Eq + Clone,
impl<I, T> PlaylistManager<I, T>where I: Hash + Eq + Clone, T: Hash + Eq + Clone,
pub fn new() -> Self
pub fn toggle(&mut self, ident: &I, item: &T)
pub fn items(&self, ident: &I) -> Vec<T>
pub fn attach_at( &mut self, observer: Weak<Mutex<Box<dyn Observer<PlaylistEvent<T>> + Send + 'static>>>, ident: &I )
pub fn detach_at( &mut self, observer: Weak<Mutex<Box<dyn Observer<PlaylistEvent<T>> + Send + 'static>>>, ident: &I )
Trait Implementations§
Auto Trait Implementations§
impl<I, T> RefUnwindSafe for PlaylistManager<I, T>
impl<I, T> Send for PlaylistManager<I, T>where I: Send, T: Send,
impl<I, T> Sync for PlaylistManager<I, T>where I: Send, T: Send,
impl<I, T> Unpin for PlaylistManager<I, T>
impl<I, T> UnwindSafe for PlaylistManager<I, T>
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