pub enum PlayerCommand {
Show 21 variants
Flush {
callback: Sender<()>,
},
Play {
playable: Playable,
},
Next,
Previous,
SetIsPlaying {
is_playing: bool,
},
TogglePlaying {
callback: Option<Sender<PlaybackStatus>>,
},
Stop,
SetVolume {
volume: f32,
increment: bool,
callback: Option<Sender<f32>>,
},
Seek {
seconds: f64,
increment: bool,
callback: Option<Sender<Option<f64>>>,
},
QueueExtend {
with: Vec<Playable>,
},
QueueSet {
to: Vec<Playable>,
expected_state: Hash,
callback: Option<Sender<bool>>,
},
QueueShuffle,
QueueClear,
PlaylistExtend {
with: Vec<Playable>,
},
PlaylistSet {
playables: Vec<Playable>,
expected_state: Hash,
callback: Option<Sender<bool>>,
},
PlaylistClear,
PlaylistSetShuffleMode {
shuffle_mode: ShuffleMode,
},
PlaylistSetLoopMode {
loop_mode: LoopMode,
},
TracklistSeek {
index: isize,
increment: bool,
callback: Option<Sender<usize>>,
},
TracklistRebuild,
GetState {
flags: PlayerQueryFlags,
callback: Sender<QueryResult>,
},
}Variants§
Flush
Play
Next
Previous
SetIsPlaying
TogglePlaying
Fields
§
callback: Option<Sender<PlaybackStatus>>Stop
SetVolume
Seek
QueueExtend
QueueSet
QueueShuffle
QueueClear
PlaylistExtend
PlaylistSet
PlaylistClear
PlaylistSetShuffleMode
Fields
§
shuffle_mode: ShuffleModePlaylistSetLoopMode
TracklistSeek
TracklistRebuild
GetState
Trait Implementations§
Source§impl Clone for PlayerCommand
impl Clone for PlayerCommand
Source§fn clone(&self) -> PlayerCommand
fn clone(&self) -> PlayerCommand
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 PlayerCommand
impl Debug for PlayerCommand
Auto Trait Implementations§
impl Freeze for PlayerCommand
impl RefUnwindSafe for PlayerCommand
impl Send for PlayerCommand
impl Sync for PlayerCommand
impl Unpin for PlayerCommand
impl UnsafeUnpin for PlayerCommand
impl UnwindSafe for PlayerCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more