pub struct BroadcastFrame {
pub frame_type: FrameType,
pub timestamp: u32,
pub data: Bytes,
pub is_keyframe: bool,
pub is_header: bool,
}Expand description
A frame to be broadcast to subscribers
This is designed to be cheap to clone due to Bytes reference counting.
Fields§
§frame_type: FrameTypeType of frame
timestamp: u32Timestamp in milliseconds
data: BytesFrame data (zero-copy via reference counting)
is_keyframe: boolWhether this is a keyframe (video only)
is_header: boolWhether this is a sequence header
Implementations§
Trait Implementations§
Source§impl Clone for BroadcastFrame
impl Clone for BroadcastFrame
Source§fn clone(&self) -> BroadcastFrame
fn clone(&self) -> BroadcastFrame
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 moreAuto Trait Implementations§
impl !Freeze for BroadcastFrame
impl RefUnwindSafe for BroadcastFrame
impl Send for BroadcastFrame
impl Sync for BroadcastFrame
impl Unpin for BroadcastFrame
impl UnwindSafe for BroadcastFrame
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