Module player

Source

Modules§

music_player_client
Generated client implementations.
music_player_server
Generated server implementations.
stream_updates
Nested message and enum types in StreamUpdates.
update_track_changed
Nested message and enum types in UpdateTrackChanged.

Structs§

Duration
using a custom Duration that matches rust’s definition, as rust’s may not fit into google’s well-known Duration
Empty
GaplessState
A Gapless state.
GetProgressResponse
PlayState
A play status.
PlayerProgress
Struct to keep both values with a name, as tuples cannot have named fields
PlayerTime
PlaylistLoopMode
The current Loop mode for the playlist
SpeedReply
StreamUpdates
all updates that can happen from the server side, without the client to have to ask explicitly naming convention for the stream update specific messages is to add the “Update” prefix, even if it already exists
TrackChangedInfo
UpdateGaplessChanged
The Gapless state changed, send new information.
UpdateMissedEvents
Indicate that some events could not be send Like a “Lagged” Error from tokio-stream
UpdatePlayStateChanged
TODO: is play-state (playing / paused / ??) the only things this should do?
UpdateSpeedChanged
The Speed changed, send new information
UpdateTrackChanged
The track changed in some way, send new information This includes everything from changing to a new track, new radio title, etc This is not used for regular track progress updates NOTE: this may or may not be sent for the initial track after startup as the client may connect after the track started
UpdateVolumeChanged
The Volume changed, send new information
VolumeReply

Enums§

UpdateEvents

Type Aliases§

PlayerTimeUnit
The primitive in which time (current position / total duration) will be stored as