Struct rtcp::extended_report::rle::Chunk [−][src]
pub struct Chunk(pub u16);
Expand description
Chunk as defined in RFC 3611, section 4.1. These represent information about packet losses and packet duplication. They have three representations:
Run Length Chunk:
0 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |C|R| run length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Bit Vector Chunk:
0 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |C| bit vector | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Terminating Null Chunk:
0 1 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0| +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Tuple Fields
0: u16
Implementations
chunk_type returns the ChunkType that this Chunk represents
run_type returns the run_type that this Chunk represents. It is only valid if ChunkType is RunLengthChunkType.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Chunk
impl UnwindSafe for Chunk
Blanket Implementations
Mutably borrows from an owned value. Read more