pub struct Packet {
pub data: Vec<u8>,
pub pos: Option<usize>,
pub stream_index: isize,
pub t: TimeInfo,
pub is_key: bool,
pub is_corrupted: bool,
}Expand description
Packet with compressed data.
Fields§
§data: Vec<u8>Packet data.
pos: Option<usize>Packet position in the stream.
If None, the packet is not associated to a stream.
stream_index: isizeType of stream the packet is associated to.
t: TimeInfoPacket timestamp information.
is_key: boolTells whether a packet contains a keyframe.
is_corrupted: boolTells whether a packet is corrupted.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Packet
impl !RefUnwindSafe for Packet
impl Send for Packet
impl Sync for Packet
impl Unpin for Packet
impl !UnwindSafe for Packet
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