pub struct AccessUnit {
pub data: Bytes,
pub timestamp: u32,
pub keyframe: bool,
}Available on crate feature
ingest and (crate features rtsp or webrtc) only.Expand description
A reassembled H.264 access unit in Annex-B form.
Fields§
§data: BytesConcatenated NAL units, each prefixed with a 4-byte start code.
timestamp: u32RTP media timestamp (90 kHz) of the access unit.
keyframe: boolWhether the access unit contains an IDR (keyframe) NAL.
Trait Implementations§
Source§impl Clone for AccessUnit
impl Clone for AccessUnit
Source§fn clone(&self) -> AccessUnit
fn clone(&self) -> AccessUnit
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 AccessUnit
impl Debug for AccessUnit
impl Eq for AccessUnit
Source§impl PartialEq for AccessUnit
impl PartialEq for AccessUnit
Source§fn eq(&self, other: &AccessUnit) -> bool
fn eq(&self, other: &AccessUnit) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AccessUnit
Auto Trait Implementations§
impl !Freeze for AccessUnit
impl RefUnwindSafe for AccessUnit
impl Send for AccessUnit
impl Sync for AccessUnit
impl Unpin for AccessUnit
impl UnsafeUnpin for AccessUnit
impl UnwindSafe for AccessUnit
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