pub struct RtpReorderBuffer { /* private fields */ }Expand description
Small RTP sequence reorder buffer.
PixelPilot keeps a short queue before its RTP parser so FU-A/FU fragments survive small USB/radio delivery inversions. This buffer does the same for the shared Rust receiver runtime while keeping the in-order path immediate.
Implementations§
Source§impl RtpReorderBuffer
impl RtpReorderBuffer
Sourcepub fn new(max_depth: usize) -> Self
pub fn new(max_depth: usize) -> Self
Create a reorder buffer with a maximum pending packet depth.
Sourcepub fn push(&mut self, packet: &[u8]) -> Result<Vec<Vec<u8>>, RtpError>
pub fn push(&mut self, packet: &[u8]) -> Result<Vec<Vec<u8>>, RtpError>
Push one RTP packet and return packets that are ready in sequence order.
Sourcepub fn status(&self) -> RtpReorderStatus
pub fn status(&self) -> RtpReorderStatus
Return current reorder-buffer status.
Trait Implementations§
Source§impl Clone for RtpReorderBuffer
impl Clone for RtpReorderBuffer
Source§fn clone(&self) -> RtpReorderBuffer
fn clone(&self) -> RtpReorderBuffer
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 moreSource§impl Debug for RtpReorderBuffer
impl Debug for RtpReorderBuffer
Auto Trait Implementations§
impl Freeze for RtpReorderBuffer
impl RefUnwindSafe for RtpReorderBuffer
impl Send for RtpReorderBuffer
impl Sync for RtpReorderBuffer
impl Unpin for RtpReorderBuffer
impl UnsafeUnpin for RtpReorderBuffer
impl UnwindSafe for RtpReorderBuffer
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