pub enum PlaybackResponse {
PlaybackState(PlaybackState),
LoopState(LoopState),
PlaybackRate(PlaybackRate),
ShuffleState(ShuffleState),
Track(Option<Box<Track>>),
PlayerVolume(PlayerVolume),
PlayerPosition(Duration),
}Expand description
Response originating from the playback module of the daemon used in
ed as an enum value for thResponse.
Variants§
PlaybackState(PlaybackState)
LoopState(LoopState)
PlaybackRate(PlaybackRate)
ShuffleState(ShuffleState)
Track(Option<Box<Track>>)
PlayerVolume(PlayerVolume)
PlayerPosition(Duration)
Trait Implementations§
Source§impl Clone for PlaybackResponse
impl Clone for PlaybackResponse
Source§fn clone(&self) -> PlaybackResponse
fn clone(&self) -> PlaybackResponse
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 PlaybackResponse
impl Debug for PlaybackResponse
Source§impl<'de> Deserialize<'de> for PlaybackResponse
impl<'de> Deserialize<'de> for PlaybackResponse
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 PlaybackResponse
impl Display for PlaybackResponse
Source§impl PartialEq for PlaybackResponse
impl PartialEq for PlaybackResponse
Source§fn eq(&self, other: &PlaybackResponse) -> bool
fn eq(&self, other: &PlaybackResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PlaybackResponse
impl Serialize for PlaybackResponse
impl StructuralPartialEq for PlaybackResponse
Auto Trait Implementations§
impl Freeze for PlaybackResponse
impl RefUnwindSafe for PlaybackResponse
impl Send for PlaybackResponse
impl Sync for PlaybackResponse
impl Unpin for PlaybackResponse
impl UnsafeUnpin for PlaybackResponse
impl UnwindSafe for PlaybackResponse
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