pub struct LoadRequestOptions {
pub start_playing: bool,
pub seek_to: u32,
pub context_options: Option<LoadContextOptions>,
pub playing_track: Option<PlayingTrack>,
}Expand description
The parameters for creating a load request
Fields§
§start_playing: boolWhether the given tracks should immediately start playing, or just be initially loaded.
seek_to: u32Start the playback at a specific point of the track.
The provided value is used as milliseconds. Providing a value greater than the track duration will start the track at the beginning.
context_options: Option<LoadContextOptions>Options that decide how the context starts playing
playing_track: Option<PlayingTrack>Decides the starting position in the given context.
If the provided item doesn’t exist or is out of range, the playback starts at the beginning of the context.
If None is provided and shuffle is true, a random track is played, otherwise the first
Trait Implementations§
Source§impl Clone for LoadRequestOptions
impl Clone for LoadRequestOptions
Source§fn clone(&self) -> LoadRequestOptions
fn clone(&self) -> LoadRequestOptions
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 LoadRequestOptions
impl Debug for LoadRequestOptions
Source§impl Default for LoadRequestOptions
impl Default for LoadRequestOptions
Source§fn default() -> LoadRequestOptions
fn default() -> LoadRequestOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LoadRequestOptions
impl RefUnwindSafe for LoadRequestOptions
impl Send for LoadRequestOptions
impl Sync for LoadRequestOptions
impl Unpin for LoadRequestOptions
impl UnwindSafe for LoadRequestOptions
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