pub struct LanBufferedPreviewWindow { /* private fields */ }Expand description
Reordering window that buffers LAN preview envelopes back into sequence order, emitting jitter/reorder/drop/late-packet diagnostics along the way.
Implementations§
Source§impl LanBufferedPreviewWindow
impl LanBufferedPreviewWindow
Sourcepub fn new(next_sequence: u64, reorder_depth: u64) -> Self
pub fn new(next_sequence: u64, reorder_depth: u64) -> Self
Creates a window expecting next_sequence, tolerating gaps up to
reorder_depth before dropping the missing range.
Sourcepub fn push(&mut self, envelope: StreamEnvelope) -> Result<Vec<StreamEnvelope>>
pub fn push(&mut self, envelope: StreamEnvelope) -> Result<Vec<StreamEnvelope>>
Accepts an envelope and returns any envelopes now in sequence order.
Late, jittered, reordered, or dropped packets are recorded as
diagnostics retrievable via drain_diagnostics.
Sourcepub fn drain_diagnostics(&mut self) -> Vec<StreamPacket>
pub fn drain_diagnostics(&mut self) -> Vec<StreamPacket>
Drains and returns the accumulated preview diagnostics.
Trait Implementations§
Source§impl Clone for LanBufferedPreviewWindow
impl Clone for LanBufferedPreviewWindow
Source§fn clone(&self) -> LanBufferedPreviewWindow
fn clone(&self) -> LanBufferedPreviewWindow
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 LanBufferedPreviewWindow
impl RefUnwindSafe for LanBufferedPreviewWindow
impl Send for LanBufferedPreviewWindow
impl Sync for LanBufferedPreviewWindow
impl Unpin for LanBufferedPreviewWindow
impl UnsafeUnpin for LanBufferedPreviewWindow
impl UnwindSafe for LanBufferedPreviewWindow
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