#[non_exhaustive]pub struct MountOptions {
pub consumer_queue_capacity: Option<usize>,
pub max_queued_bytes_per_session: Option<usize>,
pub event_sink: Option<Arc<dyn EventSink>>,
pub startup_cache_config: Option<StartupCacheConfig>,
pub timeline: Option<TimelineMode>,
pub cancel: Option<CancellationToken>,
}Expand description
Per-mount tuning knobs for MountRegistry::register_with.
All fields are optional; None falls back to the defaults that
MountRegistry::register historically used, so existing callers keep
identical behavior.
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.consumer_queue_capacity: Option<usize>Capacity (frames) of the per-mount broadcast ring. Slow consumers lag and recover; the broadcaster never blocks the encoder.
max_queued_bytes_per_session: Option<usize>Frame-size budget used by senders and startup snapshots. This is not a full broadcast-ring byte budget yet; size the ring together with the expected frame size.
event_sink: Option<Arc<dyn EventSink>>Sink for mount lifecycle/stream events; None → no-op sink.
startup_cache_config: Option<StartupCacheConfig>Startup (keyframe) cache policy for every mount type; None uses
the server default.
timeline: Option<TimelineMode>Per-mount override of the server’s live NPT timeline mode.
cancel: Option<CancellationToken>Parent cancellation token. Server-owned mounts pass a child token so
RtspServer::shutdown also stops file demuxers/proxies; standalone
registries may leave this None.