#[non_exhaustive]pub struct PlaybackSnapshot {Show 17 fields
pub source: PlaybackSourceLifecycle,
pub transport: PlaybackTransport,
pub readiness: PlaybackReadiness,
pub network: PlaybackNetworkActivity,
pub buffered: Arc<[PlaybackTimeRange]>,
pub seekable: Arc<[PlaybackTimeRange]>,
pub selected_alternative: Option<PlaybackSourceAlternative>,
pub source_failure: Option<PlaybackSourceFailure>,
pub alternative_failures: Arc<[PlaybackAlternativeFailure]>,
pub play_failure: Option<PlaybackPlayFailure>,
pub bounded: Option<BoundedPlaybackSnapshot>,
pub bounded_event: Option<BoundedPlaybackEvent>,
pub repeat: bool,
pub muted: bool,
pub audibility_level: PlaybackAudibilityLevel,
pub audibility_capability: PlaybackAudibilityCapability,
pub graph: PlaybackGraphState,
}Expand description
One coherent observation of Playback’s independent state facets.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.source: PlaybackSourceLifecycle§transport: PlaybackTransport§readiness: PlaybackReadiness§network: PlaybackNetworkActivityNetwork activity observed independently from readiness and transport.
buffered: Arc<[PlaybackTimeRange]>Normalized buffered observations for the current source attempt.
seekable: Arc<[PlaybackTimeRange]>Normalized seekable observations for the current source attempt.
selected_alternative: Option<PlaybackSourceAlternative>The selected URL alternative, if the current source is URL-addressable.
source_failure: Option<PlaybackSourceFailure>A terminal failure, separate from recoverable play-policy rejection.
alternative_failures: Arc<[PlaybackAlternativeFailure]>Ordered initial URL failures, populated when no alternative becomes playable.
play_failure: Option<PlaybackPlayFailure>§bounded: Option<BoundedPlaybackSnapshot>A one-operation source-time bound, independent from ordinary Playback state.
bounded_event: Option<BoundedPlaybackEvent>The latest discrete Bounded Playback transition, cleared by its next steady phase.
repeat: boolWhole-source repeat preference, retained across source replacement and unload.
muted: boolMute preference, retained independently from transport and audibility level.
audibility_level: PlaybackAudibilityLevelNormalized audibility preference, retained across source replacement and unload.
audibility_capability: PlaybackAudibilityCapabilityThe effectiveness contract for setting Self::audibility_level.
graph: PlaybackGraphStateOwner-lifetime graph state, independent from source and transport state.
Trait Implementations§
Source§impl Clone for PlaybackSnapshot
impl Clone for PlaybackSnapshot
Source§fn clone(&self) -> PlaybackSnapshot
fn clone(&self) -> PlaybackSnapshot
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more