pub enum LoadContextOptions {
Options(Options),
Autoplay,
}Expand description
The options which decide how the playback is started
Separated into an enum to exclude the other variants from being used
simultaneously, as they are not compatible.
Variants§
Options(Options)
Starts the context with options
Autoplay
Starts the playback as the autoplay variant of the context
This is the same as finishing a context and automatically continuing playback of similar tracks
Trait Implementations§
Source§impl Clone for LoadContextOptions
impl Clone for LoadContextOptions
Source§fn clone(&self) -> LoadContextOptions
fn clone(&self) -> LoadContextOptions
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 moreAuto Trait Implementations§
impl Freeze for LoadContextOptions
impl RefUnwindSafe for LoadContextOptions
impl Send for LoadContextOptions
impl Sync for LoadContextOptions
impl Unpin for LoadContextOptions
impl UnwindSafe for LoadContextOptions
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