pub type ContextOption = Box<dyn Fn() -> Box<dyn ReplayDetector> + Send + Sync>;Expand description
A factory for the ReplayDetector a context
should use.
A factory rather than a value because each SSRC in a session needs its own detector state. Remote contexts default to a 64-packet sliding window; pass a different factory to widen it or to disable replay protection.
Aliased Typeยง
pub struct ContextOption(/* private fields */);