pub enum PlayerEvent {
CurrentlyPlayingChanged {
currently_playing: Box<ResolvedTrack>,
},
PlaybackIsPlayingChanged {
is_playing: bool,
changed_at: f64,
},
PlaybackStopped,
ShuffleModeChanged {
shuffle_mode: ShuffleMode,
},
LoopModeChanged {
loop_mode: LoopMode,
},
VolumeChanged {
volume: f32,
},
SeekOccured {
time: f64,
},
QueueChanged {
queue: Vec<TrackId>,
},
PlaylistChanged {
playlist: Vec<Collectable>,
},
TracklistChanged {
tracklist: Vec<TrackId>,
},
Shutdown,
}Variants§
CurrentlyPlayingChanged
Fields
§
currently_playing: Box<ResolvedTrack>PlaybackIsPlayingChanged
PlaybackStopped
ShuffleModeChanged
Fields
§
shuffle_mode: ShuffleModeLoopModeChanged
VolumeChanged
SeekOccured
QueueChanged
PlaylistChanged
Fields
§
playlist: Vec<Collectable>TracklistChanged
Shutdown
Trait Implementations§
Source§impl Clone for PlayerEvent
impl Clone for PlayerEvent
Source§fn clone(&self) -> PlayerEvent
fn clone(&self) -> PlayerEvent
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 PlayerEvent
impl Debug for PlayerEvent
Source§impl<'de> Deserialize<'de> for PlayerEvent
impl<'de> Deserialize<'de> for PlayerEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PlayerEvent
impl Display for PlayerEvent
Auto Trait Implementations§
impl Freeze for PlayerEvent
impl RefUnwindSafe for PlayerEvent
impl Send for PlayerEvent
impl Sync for PlayerEvent
impl Unpin for PlayerEvent
impl UnsafeUnpin for PlayerEvent
impl UnwindSafe for PlayerEvent
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