pub struct PlaybackState {
pub owner: UserRef,
pub profile: String,
pub session_id: String,
pub revision: u64,
pub entries: Vec<PlaybackEntry>,
pub current_occurrence: Option<u64>,
pub position_ms: u64,
pub settings: PlaybackSettings,
pub updated_at: u64,
}Expand description
One private named checkpoint, resumed only by an explicit client request.
Persistence does not create a listen or restart playback. The server owns authorization, writer locking and compare-before-write of session/revision; a stale socket must not overwrite a newer session with the same profile.
Fields§
§owner: UserRefImmutable account owner; mutable account login names are never used.
profile: StringCase-sensitive 1–64 ASCII letters, digits, underscores or hyphens.
session_id: StringOpaque server-created session identity, independent of queue contents.
revision: u64Positive exact-JSON revision used to reject stale updates.
entries: Vec<PlaybackEntry>Finite ordered selection, including intentional repeated tracks.
current_occurrence: Option<u64>Selected occurrence, or no selection after natural queue completion.
position_ms: u64Acknowledged source position for the selected occurrence, in milliseconds.
settings: PlaybackSettingsProcessing settings for a deliberate resume.
updated_at: u64Last successful checkpoint publication, Unix seconds.
Trait Implementations§
Source§impl Clone for PlaybackState
impl Clone for PlaybackState
Source§fn clone(&self) -> PlaybackState
fn clone(&self) -> PlaybackState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more