#[non_exhaustive]pub struct Options {
pub decoder: Config,
pub start: Start,
pub max_age: Duration,
}Expand description
How a Consumer subscribes to its track, and the decoder it feeds.
The subscription half is what a bare Decoder has no use
for: where to start on a cached track, and how far to fall behind live
before skipping. The decoder half is passed through as it is.
#[non_exhaustive]: build via Options::new (or default()) and set the
fields, so future knobs don’t break callers.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.decoder: ConfigThe decoder: backend, output representation, scaling hint.
start: StartWhere to start on a track that already holds groups.
max_age: DurationHow far playback may drift from the live edge before a stalled group is
skipped. Defaults to std::time::Duration::ZERO
(skip aggressively); set it to your playout buffer for a softer skip.
Applied to the transport subscription and inherited by
moq_mux::container::Consumer.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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