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: isize
Type of stream the packet is associated to.
t: TimeInfo
Packet timestamp information.
is_key: bool
Tells whether a packet contains a keyframe.
is_corrupted: bool
Tells 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