pub struct SFramePayloader {
pub origin: SFramePayloadOrigin,
}Expand description
Section 5.1: fragments an SFrame ciphertext into RTP payloads no larger than the MTU, each behind its descriptor. The RTP layer sets the marker bit on the last packet of the frame (step 8: the marker is E when the frame’s marker is set).
Fields§
§origin: SFramePayloadOriginThe payload origin, the T bit of every fragment.
Implementations§
Source§impl SFramePayloader
impl SFramePayloader
Sourcepub fn new(origin: SFramePayloadOrigin) -> Self
pub fn new(origin: SFramePayloadOrigin) -> Self
A payloader for SFrame frames of origin.
Trait Implementations§
Source§impl Clone for SFramePayloader
impl Clone for SFramePayloader
impl Copy for SFramePayloader
Source§impl Debug for SFramePayloader
impl Debug for SFramePayloader
Source§impl Default for SFramePayloader
impl Default for SFramePayloader
Source§impl Payloader for SFramePayloader
impl Payloader for SFramePayloader
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 SFramePayloader
impl Freeze for SFramePayloader
impl Move for SFramePayloader
impl RefUnwindSafe for SFramePayloader
impl Send for SFramePayloader
impl Sync for SFramePayloader
impl Unpin for SFramePayloader
impl UnsafeUnpin for SFramePayloader
impl UnwindSafe for SFramePayloader
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