pub struct RemoteDataTrackPipelineOptions { /* private fields */ }Expand description
Track-level options that configure how the incoming-frame pipeline reassembles packets
for a RemoteDataTrack.
Applied via RemoteDataTrack::set_pipeline_options.
§Examples
Allow up to 10 partial frames to be assembled concurrently:
let options = RemoteDataTrackPipelineOptions::default()
.with_max_partial_frames(10);
Implementations§
Source§impl RemoteDataTrackPipelineOptions
impl RemoteDataTrackPipelineOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates pipeline options with default values.
Equivalent to Self::default.
Sourcepub fn max_partial_frames(&self) -> usize
pub fn max_partial_frames(&self) -> usize
Maximum number of partial frames the depacketizer will track concurrently for this track.
Defaults to 1. Higher values give more out-of-order tolerance for high-frequency
senders at the cost of additional buffering.
Sourcepub fn with_max_partial_frames(self, frames: usize) -> Self
pub fn with_max_partial_frames(self, frames: usize) -> Self
Sets the maximum number of partial frames the depacketizer will track concurrently.
Zero is not a valid value; if a value of zero is provided, it will be clamped to one.
Trait Implementations§
Source§impl Clone for RemoteDataTrackPipelineOptions
impl Clone for RemoteDataTrackPipelineOptions
Source§fn clone(&self) -> RemoteDataTrackPipelineOptions
fn clone(&self) -> RemoteDataTrackPipelineOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RemoteDataTrackPipelineOptions
impl RefUnwindSafe for RemoteDataTrackPipelineOptions
impl Send for RemoteDataTrackPipelineOptions
impl Sync for RemoteDataTrackPipelineOptions
impl Unpin for RemoteDataTrackPipelineOptions
impl UnsafeUnpin for RemoteDataTrackPipelineOptions
impl UnwindSafe for RemoteDataTrackPipelineOptions
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