pub enum PlaybackEvent {
PlaybackStateChanged(PlaybackState),
LoopStateChanged(LoopState),
ShuffleStateChanged(ShuffleState),
QueueChanged(Vec<Track>),
PositionChanged(usize),
PlayerPositionChanged(Duration),
PlayerVolumeChanged(PlayerVolume),
RateChanged(PlaybackRate),
}Expand description
Event originating from the playback module of the daemon.
Variants§
PlaybackStateChanged(PlaybackState)
Sent when the playback state changes, for instance when the player is paused.
LoopStateChanged(LoopState)
Sent when the loop state of the player changes.
ShuffleStateChanged(ShuffleState)
Sent when the shuffle state of the player changes.
QueueChanged(Vec<Track>)
Sent when the track queue changes.
PositionChanged(usize)
Sent when the current track changes.
PlayerPositionChanged(Duration)
Sent when the position of the player changes.
PlayerVolumeChanged(PlayerVolume)
Sent when the volume of the player changes.
RateChanged(PlaybackRate)
Sent when the playback rate of the player changes.
Trait Implementations§
Source§impl Clone for PlaybackEvent
impl Clone for PlaybackEvent
Source§fn clone(&self) -> PlaybackEvent
fn clone(&self) -> PlaybackEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PlaybackEvent
impl Debug for PlaybackEvent
Source§impl<'de> Deserialize<'de> for PlaybackEvent
impl<'de> Deserialize<'de> for PlaybackEvent
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 PartialEq for PlaybackEvent
impl PartialEq for PlaybackEvent
Source§fn eq(&self, other: &PlaybackEvent) -> bool
fn eq(&self, other: &PlaybackEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PlaybackEvent
impl Serialize for PlaybackEvent
impl StructuralPartialEq for PlaybackEvent
Auto Trait Implementations§
impl Freeze for PlaybackEvent
impl RefUnwindSafe for PlaybackEvent
impl Send for PlaybackEvent
impl Sync for PlaybackEvent
impl Unpin for PlaybackEvent
impl UnsafeUnpin for PlaybackEvent
impl UnwindSafe for PlaybackEvent
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