pub struct RedBlock {
pub payload_type: u8,
pub timestamp_offset: u16,
pub data: Bytes,
pub primary: bool,
}Expand description
One block of a RED payload.
Fields§
§payload_type: u8RTP payload type of the block’s data.
timestamp_offset: u16How far the block’s timestamp is before the RTP timestamp; 0 for the primary.
data: BytesThe block’s data: a standard RTP payload of payload_type.
primary: boolWhether this is the primary block.
Implementations§
Trait Implementations§
impl Eq for RedBlock
impl StructuralPartialEq for RedBlock
Auto Trait Implementations§
impl !Freeze for RedBlock
impl Forget for RedBlock
impl Move for RedBlock
impl RefUnwindSafe for RedBlock
impl Send for RedBlock
impl Sync for RedBlock
impl Unpin for RedBlock
impl UnsafeUnpin for RedBlock
impl UnwindSafe for RedBlock
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