pub enum MusicPlayerResponse {
Show 92 variants
RegisterListener(()),
Ping(String),
LibraryRescan(Result<(), SerializableLibraryError>),
LibraryRescanInProgress(bool),
LibraryAnalyze(Result<(), SerializableLibraryError>),
LibraryAnalyzeInProgress(bool),
LibraryRecluster(Result<(), SerializableLibraryError>),
LibraryReclusterInProgress(bool),
LibraryBrief(Result<LibraryBrief, SerializableLibraryError>),
LibraryFull(Result<LibraryFull, SerializableLibraryError>),
LibraryArtistsBrief(Result<Box<[ArtistBrief]>, SerializableLibraryError>),
LibraryArtistsFull(Result<Box<[Artist]>, SerializableLibraryError>),
LibraryAlbumsBrief(Result<Box<[AlbumBrief]>, SerializableLibraryError>),
LibraryAlbumsFull(Result<Box<[Album]>, SerializableLibraryError>),
LibrarySongsBrief(Result<Box<[SongBrief]>, SerializableLibraryError>),
LibrarySongsFull(Result<Box<[Song]>, SerializableLibraryError>),
LibraryPlaylistsBrief(Result<Box<[PlaylistBrief]>, SerializableLibraryError>),
LibraryPlaylistsFull(Result<Box<[Playlist]>, SerializableLibraryError>),
LibraryCollectionsBrief(Result<Box<[CollectionBrief]>, SerializableLibraryError>),
LibraryCollectionsFull(Result<Box<[Collection]>, SerializableLibraryError>),
LibraryHealth(Result<LibraryHealth, SerializableLibraryError>),
LibrarySongGet(Option<Song>),
LibrarySongGetByPath(Option<Song>),
LibrarySongGetArtist(OneOrMany<Artist>),
LibrarySongGetAlbum(Option<Album>),
LibrarySongGetPlaylists(Box<[Playlist]>),
LibrarySongGetCollections(Box<[Collection]>),
LibraryAlbumGet(Option<Album>),
LibraryAlbumGetArtist(OneOrMany<Artist>),
LibraryAlbumGetSongs(Option<Box<[Song]>>),
LibraryArtistGet(Option<Artist>),
LibraryArtistGetSongs(Option<Box<[Song]>>),
LibraryArtistGetAlbums(Option<Box<[Album]>>),
DaemonShutdown(()),
StateAudio(Option<StateAudio>),
CurrentArtist(OneOrMany<Artist>),
CurrentAlbum(Option<Album>),
CurrentSong(Option<SongBrief>),
RandArtist(Option<ArtistBrief>),
RandAlbum(Option<AlbumBrief>),
RandSong(Option<SongBrief>),
Search(SearchResult),
SearchArtist(Box<[ArtistBrief]>),
SearchAlbum(Box<[AlbumBrief]>),
SearchSong(Box<[SongBrief]>),
PlaybackToggle(()),
PlaybackPlay(()),
PlaybackPause(()),
PlaybackStop(()),
PlaybackRestart(()),
PlaybackSkipForward(()),
PlaybackSkipBackward(()),
PlaybackClearPlayer(()),
PlaybackClear(()),
PlaybackSeek(()),
PlaybackRepeat(()),
PlaybackShuffle(()),
PlaybackVolume(()),
PlaybackVolumeUp(()),
PlaybackVolumeDown(()),
PlaybackVolumeToggleMute(()),
PlaybackMute(()),
PlaybackUnmute(()),
QueueAdd(Result<(), SerializableLibraryError>),
QueueAddList(Result<(), SerializableLibraryError>),
QueueSetIndex(()),
QueueRemoveRange(()),
PlaylistGetOrCreate(Result<PlaylistId, SerializableLibraryError>),
PlaylistRemove(Result<(), SerializableLibraryError>),
PlaylistClone(Result<PlaylistId, SerializableLibraryError>),
PlaylistGetId(Option<PlaylistId>),
PlaylistRemoveSongs(Result<(), SerializableLibraryError>),
PlaylistAdd(Result<(), SerializableLibraryError>),
PlaylistAddList(Result<(), SerializableLibraryError>),
PlaylistGet(Option<Playlist>),
PlaylistGetSongs(Option<Box<[Song]>>),
PlaylistRename(Result<Playlist, SerializableLibraryError>),
PlaylistExport(Result<(), SerializableLibraryError>),
PlaylistImport(Result<PlaylistId, SerializableLibraryError>),
CollectionGet(Option<Collection>),
CollectionFreeze(Result<PlaylistId, SerializableLibraryError>),
CollectionGetSongs(Option<Box<[Song]>>),
RadioGetSimilar(Result<Box<[Song]>, SerializableLibraryError>),
RadioGetSimilarIds(Result<Box<[SongId]>, SerializableLibraryError>),
DynamicPlaylistCreate(Result<DynamicPlaylistId, SerializableLibraryError>),
DynamicPlaylistList(Box<[DynamicPlaylist]>),
DynamicPlaylistUpdate(Result<DynamicPlaylist, SerializableLibraryError>),
DynamicPlaylistRemove(Result<(), SerializableLibraryError>),
DynamicPlaylistGet(Option<DynamicPlaylist>),
DynamicPlaylistGetSongs(Option<Box<[Song]>>),
DynamicPlaylistExport(Result<(), SerializableLibraryError>),
DynamicPlaylistImport(Result<Vec<DynamicPlaylist>, SerializableLibraryError>),
}Expand description
The response sent over the wire from the server to the client.
Variants§
RegisterListener(())
Ping(String)
LibraryRescan(Result<(), SerializableLibraryError>)
LibraryRescanInProgress(bool)
LibraryAnalyze(Result<(), SerializableLibraryError>)
LibraryAnalyzeInProgress(bool)
LibraryRecluster(Result<(), SerializableLibraryError>)
LibraryReclusterInProgress(bool)
LibraryBrief(Result<LibraryBrief, SerializableLibraryError>)
LibraryFull(Result<LibraryFull, SerializableLibraryError>)
LibraryArtistsBrief(Result<Box<[ArtistBrief]>, SerializableLibraryError>)
LibraryArtistsFull(Result<Box<[Artist]>, SerializableLibraryError>)
LibraryAlbumsBrief(Result<Box<[AlbumBrief]>, SerializableLibraryError>)
LibraryAlbumsFull(Result<Box<[Album]>, SerializableLibraryError>)
LibrarySongsBrief(Result<Box<[SongBrief]>, SerializableLibraryError>)
LibrarySongsFull(Result<Box<[Song]>, SerializableLibraryError>)
LibraryPlaylistsBrief(Result<Box<[PlaylistBrief]>, SerializableLibraryError>)
LibraryPlaylistsFull(Result<Box<[Playlist]>, SerializableLibraryError>)
LibraryCollectionsBrief(Result<Box<[CollectionBrief]>, SerializableLibraryError>)
LibraryCollectionsFull(Result<Box<[Collection]>, SerializableLibraryError>)
LibraryHealth(Result<LibraryHealth, SerializableLibraryError>)
LibrarySongGet(Option<Song>)
LibrarySongGetByPath(Option<Song>)
LibrarySongGetArtist(OneOrMany<Artist>)
LibrarySongGetAlbum(Option<Album>)
LibrarySongGetPlaylists(Box<[Playlist]>)
LibrarySongGetCollections(Box<[Collection]>)
LibraryAlbumGet(Option<Album>)
LibraryAlbumGetArtist(OneOrMany<Artist>)
LibraryAlbumGetSongs(Option<Box<[Song]>>)
LibraryArtistGet(Option<Artist>)
LibraryArtistGetSongs(Option<Box<[Song]>>)
LibraryArtistGetAlbums(Option<Box<[Album]>>)
DaemonShutdown(())
StateAudio(Option<StateAudio>)
CurrentArtist(OneOrMany<Artist>)
CurrentAlbum(Option<Album>)
CurrentSong(Option<SongBrief>)
RandArtist(Option<ArtistBrief>)
RandAlbum(Option<AlbumBrief>)
RandSong(Option<SongBrief>)
Search(SearchResult)
SearchArtist(Box<[ArtistBrief]>)
SearchAlbum(Box<[AlbumBrief]>)
SearchSong(Box<[SongBrief]>)
PlaybackToggle(())
PlaybackPlay(())
PlaybackPause(())
PlaybackStop(())
PlaybackRestart(())
PlaybackSkipForward(())
PlaybackSkipBackward(())
PlaybackClearPlayer(())
PlaybackClear(())
PlaybackSeek(())
PlaybackRepeat(())
PlaybackShuffle(())
PlaybackVolume(())
PlaybackVolumeUp(())
PlaybackVolumeDown(())
PlaybackVolumeToggleMute(())
PlaybackMute(())
PlaybackUnmute(())
QueueAdd(Result<(), SerializableLibraryError>)
QueueAddList(Result<(), SerializableLibraryError>)
QueueSetIndex(())
QueueRemoveRange(())
PlaylistGetOrCreate(Result<PlaylistId, SerializableLibraryError>)
PlaylistRemove(Result<(), SerializableLibraryError>)
PlaylistClone(Result<PlaylistId, SerializableLibraryError>)
PlaylistGetId(Option<PlaylistId>)
PlaylistRemoveSongs(Result<(), SerializableLibraryError>)
PlaylistAdd(Result<(), SerializableLibraryError>)
PlaylistAddList(Result<(), SerializableLibraryError>)
PlaylistGet(Option<Playlist>)
PlaylistGetSongs(Option<Box<[Song]>>)
PlaylistRename(Result<Playlist, SerializableLibraryError>)
PlaylistExport(Result<(), SerializableLibraryError>)
PlaylistImport(Result<PlaylistId, SerializableLibraryError>)
CollectionGet(Option<Collection>)
CollectionFreeze(Result<PlaylistId, SerializableLibraryError>)
CollectionGetSongs(Option<Box<[Song]>>)
RadioGetSimilar(Result<Box<[Song]>, SerializableLibraryError>)
RadioGetSimilarIds(Result<Box<[SongId]>, SerializableLibraryError>)
DynamicPlaylistCreate(Result<DynamicPlaylistId, SerializableLibraryError>)
DynamicPlaylistList(Box<[DynamicPlaylist]>)
DynamicPlaylistUpdate(Result<DynamicPlaylist, SerializableLibraryError>)
DynamicPlaylistRemove(Result<(), SerializableLibraryError>)
DynamicPlaylistGet(Option<DynamicPlaylist>)
DynamicPlaylistGetSongs(Option<Box<[Song]>>)
DynamicPlaylistExport(Result<(), SerializableLibraryError>)
DynamicPlaylistImport(Result<Vec<DynamicPlaylist>, SerializableLibraryError>)
Trait Implementations§
Source§impl Debug for MusicPlayerResponse
impl Debug for MusicPlayerResponse
Source§impl<'de> Deserialize<'de> for MusicPlayerResponse
impl<'de> Deserialize<'de> for MusicPlayerResponse
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
Auto Trait Implementations§
impl Freeze for MusicPlayerResponse
impl RefUnwindSafe for MusicPlayerResponse
impl Send for MusicPlayerResponse
impl Sync for MusicPlayerResponse
impl Unpin for MusicPlayerResponse
impl UnwindSafe for MusicPlayerResponse
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