pub enum Event {
Quit,
LibraryChanged(MusicLibrary),
PlaybackEvent(PlaybackEvent),
CanRaiseChanged(bool),
CanGoFullscreenChanged(bool),
CanQuitChanged(bool),
}Expand description
Event from the daemon received in Response::Event.
Variants§
Quit
Sent before the daemon quits.
LibraryChanged(MusicLibrary)
Sent after the contents of the music library have changed.
PlaybackEvent(PlaybackEvent)
Event originating from the playback module of the daemon.
CanRaiseChanged(bool)
Sent when the can_raise property of the daemon config changes.
CanGoFullscreenChanged(bool)
Sent when the can_go_fullscreen property of the daemon config changes.
CanQuitChanged(bool)
Sent when the can_quit property of the daemon config changes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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