pub struct VideoFrame {
pub sequence_number: u64,
pub frame_type: FrameType,
pub codec: FrameCodec,
pub data: Vec<u8>,
pub timestamp: f64,
}Expand description
Represents a raw, encoded video frame as it arrives from the network. In our simulation, this is the unit that comes from a QUIC stream.
Fields§
§sequence_number: u64The sequence number of the frame. Must be contiguous.
frame_type: FrameTypeThe type of the frame (KeyFrame or DeltaFrame).
codec: FrameCodecThe codec used to encode this frame.
data: Vec<u8>The encoded video data.
timestamp: f64The timestamp of the frame.
Trait Implementations§
Source§impl Clone for VideoFrame
impl Clone for VideoFrame
Source§fn clone(&self) -> VideoFrame
fn clone(&self) -> VideoFrame
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VideoFrame
impl Debug for VideoFrame
Source§impl<'de> Deserialize<'de> for VideoFrame
impl<'de> Deserialize<'de> for VideoFrame
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VideoFrame
impl RefUnwindSafe for VideoFrame
impl Send for VideoFrame
impl Sync for VideoFrame
impl Unpin for VideoFrame
impl UnsafeUnpin for VideoFrame
impl UnwindSafe for VideoFrame
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