pub struct MockRtpFrame {
pub width: u16,
pub height: u16,
pub frame_index: u64,
pub timestamp: u32,
pub rgba: Vec<u8>,
pub rtp_packets: usize,
pub rtp_bytes: usize,
}Expand description
One RGBA frame recovered from the Rust mock RTP pipeline.
Fields§
§width: u16Frame width in pixels.
height: u16Frame height in pixels.
frame_index: u64Monotonic mock frame index.
timestamp: u32RTP timestamp used for this frame.
rgba: Vec<u8>RGBA pixels in row-major order.
rtp_packets: usizeNumber of RTP packets generated and consumed for this frame.
rtp_bytes: usizeTotal RTP bytes generated for this frame.
Trait Implementations§
Source§impl Clone for MockRtpFrame
impl Clone for MockRtpFrame
Source§fn clone(&self) -> MockRtpFrame
fn clone(&self) -> MockRtpFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MockRtpFrame
impl Debug for MockRtpFrame
impl Eq for MockRtpFrame
Source§impl PartialEq for MockRtpFrame
impl PartialEq for MockRtpFrame
Source§fn eq(&self, other: &MockRtpFrame) -> bool
fn eq(&self, other: &MockRtpFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MockRtpFrame
Auto Trait Implementations§
impl Freeze for MockRtpFrame
impl RefUnwindSafe for MockRtpFrame
impl Send for MockRtpFrame
impl Sync for MockRtpFrame
impl Unpin for MockRtpFrame
impl UnsafeUnpin for MockRtpFrame
impl UnwindSafe for MockRtpFrame
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