pub struct OpaquePayloader;Expand description
Splits a unit of arbitrary bytes into payloads of at most mtu, each behind the flags
byte. An empty unit is one payload with both flags.
Trait Implementations§
Source§impl Clone for OpaquePayloader
impl Clone for OpaquePayloader
impl Copy for OpaquePayloader
Source§impl Debug for OpaquePayloader
impl Debug for OpaquePayloader
Source§impl Default for OpaquePayloader
impl Default for OpaquePayloader
Source§impl Payloader for OpaquePayloader
impl Payloader for OpaquePayloader
Source§fn payload(&mut self, mtu: usize, payload: &Bytes) -> Result<Vec<Bytes>>
fn payload(&mut self, mtu: usize, payload: &Bytes) -> Result<Vec<Bytes>>
Splits one encoded frame into payloads no larger than
mtu. Read moreSource§fn marker_rule(&self) -> MarkerRule
fn marker_rule(&self) -> MarkerRule
Which packets carry the marker bit. Video unless the payloader says otherwise.
Source§fn payload_duration(&self, _payload: &Bytes) -> Option<u32>
fn payload_duration(&self, _payload: &Bytes) -> Option<u32>
For a sample-based format, the RTP timestamp units one payload of
payload covers, so that a frame split over several packets gets
a timestamp per packet (RFC 3551 section 4.3: the timestamp is the sampling instant of
the packet’s first sample). None, the default, is a frame-based format: every packet
of the frame carries the frame’s timestamp.Source§fn set_next_frame_info(&mut self, _info: &dyn Any)
fn set_next_frame_info(&mut self, _info: &dyn Any)
What the encoder says about the next frame
payload is given,
for a format whose payload describes more than the frame’s bytes (VP9’s layer indices,
Vp9FrameInfo); a type the payloader does not use
is ignored, as is the call by a payloader that uses none (the default).Auto Trait Implementations§
impl Forget for OpaquePayloader
impl Freeze for OpaquePayloader
impl Move for OpaquePayloader
impl RefUnwindSafe for OpaquePayloader
impl Send for OpaquePayloader
impl Sync for OpaquePayloader
impl Unpin for OpaquePayloader
impl UnsafeUnpin for OpaquePayloader
impl UnwindSafe for OpaquePayloader
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