pub enum MusicPlayerRequest {
Show 86 variants
RegisterListener {
listener_addr: SocketAddr,
},
Ping {},
LibraryRescan {},
LibraryRescanInProgress {},
LibraryAnalyze {
overwrite: bool,
},
LibraryAnalyzeInProgress {},
LibraryRecluster {},
LibraryReclusterInProgress {},
LibraryBrief {},
LibraryFull {},
LibraryArtistsBrief {},
LibraryArtistsFull {},
LibraryAlbumsBrief {},
LibraryAlbumsFull {},
LibrarySongsBrief {},
LibrarySongsFull {},
LibraryHealth {},
LibrarySongGet {
id: SongId,
},
LibrarySongGetByPath {
path: PathBuf,
},
LibrarySongGetArtist {
id: SongId,
},
LibrarySongGetAlbum {
id: SongId,
},
LibrarySongGetPlaylists {
id: SongId,
},
LibrarySongGetCollections {
id: SongId,
},
LibraryAlbumGet {
id: AlbumId,
},
LibraryAlbumGetArtist {
id: AlbumId,
},
LibraryAlbumGetSongs {
id: AlbumId,
},
LibraryArtistGet {
id: ArtistId,
},
LibraryArtistGetSongs {
id: ArtistId,
},
LibraryArtistGetAlbums {
id: ArtistId,
},
DaemonShutdown {},
StateAudio {},
CurrentArtist {},
CurrentAlbum {},
CurrentSong {},
RandArtist {},
RandAlbum {},
RandSong {},
Search {
query: String,
limit: u32,
},
SearchArtist {
query: String,
limit: u32,
},
SearchAlbum {
query: String,
limit: u32,
},
SearchSong {
query: String,
limit: u32,
},
PlaybackToggle {},
PlaybackPlay {},
PlaybackPause {},
PlaybackStop {},
PlaybackRestart {},
PlaybackSkipForward {
amount: usize,
},
PlaybackSkipBackward {
amount: usize,
},
PlaybackClearPlayer {},
PlaybackClear {},
PlaybackSeek {
seek: SeekType,
duration: Duration,
},
PlaybackRepeat {
mode: RepeatMode,
},
PlaybackShuffle {},
PlaybackVolume {
volume: f32,
},
PlaybackVolumeUp {
amount: f32,
},
PlaybackVolumeDown {
amount: f32,
},
PlaybackVolumeToggleMute {},
PlaybackMute {},
PlaybackUnmute {},
QueueAdd {
thing: RecordId,
},
QueueAddList {
list: Vec<RecordId>,
},
QueueSetIndex {
index: usize,
},
QueueRemoveRange {
range: Range<usize>,
},
PlaylistList {},
PlaylistGetOrCreate {
name: String,
},
PlaylistRemove {
id: PlaylistId,
},
PlaylistClone {
id: PlaylistId,
},
PlaylistGetId {
name: String,
},
PlaylistRemoveSongs {
playlist: PlaylistId,
songs: Vec<SongId>,
},
PlaylistAdd {
playlist: PlaylistId,
thing: RecordId,
},
PlaylistAddList {
playlist: PlaylistId,
list: Vec<RecordId>,
},
PlaylistGet {
id: PlaylistId,
},
PlaylistGetSongs {
id: PlaylistId,
},
PlaylistRename {
id: PlaylistId,
name: String,
},
CollectionList {},
CollectionGet {
id: CollectionId,
},
CollectionFreeze {
id: CollectionId,
name: String,
},
CollectionGetSongs {
id: CollectionId,
},
RadioGetSimilar {
things: Vec<RecordId>,
n: u32,
},
RadioGetSimilarIds {
things: Vec<RecordId>,
n: u32,
},
DynamicPlaylistCreate {
name: String,
query: Query,
},
DynamicPlaylistList {},
DynamicPlaylistUpdate {
id: DynamicPlaylistId,
changes: DynamicPlaylistChangeSet,
},
DynamicPlaylistRemove {
id: DynamicPlaylistId,
},
DynamicPlaylistGet {
id: DynamicPlaylistId,
},
DynamicPlaylistGetSongs {
id: DynamicPlaylistId,
},
}Expand description
The request sent over the wire from the client to the server.
Variants§
RegisterListener
Fields
§
listener_addr: SocketAddrPing
LibraryRescan
LibraryRescanInProgress
LibraryAnalyze
LibraryAnalyzeInProgress
LibraryRecluster
LibraryReclusterInProgress
LibraryBrief
LibraryFull
LibraryArtistsBrief
LibraryArtistsFull
LibraryAlbumsBrief
LibraryAlbumsFull
LibrarySongsBrief
LibrarySongsFull
LibraryHealth
LibrarySongGet
LibrarySongGetByPath
LibrarySongGetArtist
LibrarySongGetAlbum
LibrarySongGetPlaylists
LibrarySongGetCollections
LibraryAlbumGet
LibraryAlbumGetArtist
LibraryAlbumGetSongs
LibraryArtistGet
LibraryArtistGetSongs
LibraryArtistGetAlbums
DaemonShutdown
StateAudio
CurrentArtist
CurrentAlbum
CurrentSong
RandArtist
RandAlbum
RandSong
Search
SearchArtist
SearchAlbum
SearchSong
PlaybackToggle
PlaybackPlay
PlaybackPause
PlaybackStop
PlaybackRestart
PlaybackSkipForward
PlaybackSkipBackward
PlaybackClearPlayer
PlaybackClear
PlaybackSeek
PlaybackRepeat
Fields
§
mode: RepeatModePlaybackShuffle
PlaybackVolume
PlaybackVolumeUp
PlaybackVolumeDown
PlaybackVolumeToggleMute
PlaybackMute
PlaybackUnmute
QueueAdd
QueueAddList
QueueSetIndex
QueueRemoveRange
PlaylistList
PlaylistGetOrCreate
PlaylistRemove
Fields
§
id: PlaylistIdPlaylistClone
Fields
§
id: PlaylistIdPlaylistGetId
PlaylistRemoveSongs
PlaylistAdd
PlaylistAddList
PlaylistGet
Fields
§
id: PlaylistIdPlaylistGetSongs
Fields
§
id: PlaylistIdPlaylistRename
CollectionList
CollectionGet
Fields
§
id: CollectionIdCollectionFreeze
CollectionGetSongs
Fields
§
id: CollectionIdRadioGetSimilar
RadioGetSimilarIds
DynamicPlaylistCreate
DynamicPlaylistList
DynamicPlaylistUpdate
DynamicPlaylistRemove
Fields
DynamicPlaylistGet
Fields
DynamicPlaylistGetSongs
Fields
Trait Implementations§
Source§impl Debug for MusicPlayerRequest
impl Debug for MusicPlayerRequest
Source§impl<'de> Deserialize<'de> for MusicPlayerRequest
impl<'de> Deserialize<'de> for MusicPlayerRequest
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 RequestName for MusicPlayerRequest
impl RequestName for MusicPlayerRequest
Auto Trait Implementations§
impl Freeze for MusicPlayerRequest
impl RefUnwindSafe for MusicPlayerRequest
impl Send for MusicPlayerRequest
impl Sync for MusicPlayerRequest
impl Unpin for MusicPlayerRequest
impl UnwindSafe for MusicPlayerRequest
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<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§unsafe fn to_subset_unchecked(&self) -> SS
unsafe fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.