pub struct FlexFecBlock {
pub ssrc: u32,
pub sn_base: u16,
pub protected: FlexFecProtected,
}Expand description
One block of an R=0 FEC header: the source stream (taken from the repair packet’s CSRC list), its SN base, and the mask or L/D that follows.
Fields§
§ssrc: u32The source stream’s SSRC: CSRC_i of the repair packet’s RTP header.
sn_base: u16The lowest sequence number of this stream the repair packet protects.
protected: FlexFecProtectedWhich packets from there.
Implementations§
Source§impl FlexFecBlock
impl FlexFecBlock
Sourcepub fn offsets(&self) -> Vec<u16>
pub fn offsets(&self) -> Vec<u16>
The offsets from sn_base of the packets this block protects, ascending.
At most 255 entries: a mask has 110 bits, a row L <= 255 packets, a column D <= 255.
Sourcepub fn span(&self) -> u32
pub fn span(&self) -> u32
The distance from sn_base to the last packet protected, plus one: how many sequence
numbers the block spans. 0 when it protects nothing.
Sourcepub fn sequence_numbers(&self) -> Vec<u16>
pub fn sequence_numbers(&self) -> Vec<u16>
The sequence numbers this block protects, in sending order.
Trait Implementations§
Source§impl Clone for FlexFecBlock
impl Clone for FlexFecBlock
impl Copy for FlexFecBlock
Source§impl Debug for FlexFecBlock
impl Debug for FlexFecBlock
impl Eq for FlexFecBlock
Source§impl PartialEq for FlexFecBlock
impl PartialEq for FlexFecBlock
impl StructuralPartialEq for FlexFecBlock
Auto Trait Implementations§
impl Forget for FlexFecBlock
impl Freeze for FlexFecBlock
impl Move for FlexFecBlock
impl RefUnwindSafe for FlexFecBlock
impl Send for FlexFecBlock
impl Sync for FlexFecBlock
impl Unpin for FlexFecBlock
impl UnsafeUnpin for FlexFecBlock
impl UnwindSafe for FlexFecBlock
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