pub struct RtpFragment {
pub marker: bool,
pub payload: Vec<u8>,
}Available on crate feature
ingest and (crate features rtsp or webrtc) only.Expand description
One RTP packet’s payload (everything after the 12-byte header) plus its
marker bit, as produced by RtpPacketizer::fragment_into.
A fragment is viewer-independent: it depends only on the access-unit bytes
and the codec/MTU, not on a session’s SSRC, sequence number, payload type, or
timestamp. So for an N-viewer fan-out (WHEP), an origin computes the fragment
list once per stream and each viewer turns each fragment into a wire
packet with RtpPacketizer::stamp_into (its own header) — sharing the
NAL→FU fragmentation work instead of repeating it per viewer.
Fields§
§marker: boolThe RTP marker bit (set on the last packet of an access unit).
payload: Vec<u8>The packet payload: a single NAL, or one FU/FU-A fragment.
Trait Implementations§
Source§impl Clone for RtpFragment
impl Clone for RtpFragment
Source§fn clone(&self) -> RtpFragment
fn clone(&self) -> RtpFragment
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 moreAuto Trait Implementations§
impl Freeze for RtpFragment
impl RefUnwindSafe for RtpFragment
impl Send for RtpFragment
impl Sync for RtpFragment
impl Unpin for RtpFragment
impl UnsafeUnpin for RtpFragment
impl UnwindSafe for RtpFragment
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