pub struct RtpPacketWriterVec<'a, 'b> { /* private fields */ }Expand description
An implementation of a RtpPacketWriter that appends to a Vec<u8>.
Trait Implementations§
Source§impl<'a, 'b> Debug for RtpPacketWriterVec<'a, 'b>
impl<'a, 'b> Debug for RtpPacketWriterVec<'a, 'b>
Source§impl<'a, 'b> Default for RtpPacketWriterVec<'a, 'b>
impl<'a, 'b> Default for RtpPacketWriterVec<'a, 'b>
Source§fn default() -> RtpPacketWriterVec<'a, 'b>
fn default() -> RtpPacketWriterVec<'a, 'b>
Returns the “default value” for a type. Read more
Source§impl<'a, 'b> RtpPacketWriter for RtpPacketWriterVec<'a, 'b>
impl<'a, 'b> RtpPacketWriter for RtpPacketWriterVec<'a, 'b>
Source§type Extension = &'b [u8]
type Extension = &'b [u8]
The type of the RTP extension data to be stored in the output packet:was.
Source§fn reserve(&mut self, size: usize)
fn reserve(&mut self, size: usize)
Reserve a number of bytes in the output. Multiple calls are possible and provide the
entire size to reserve.
Source§fn push(&mut self, data: &[u8])
fn push(&mut self, data: &[u8])
Provides data to append to the output. May be called multiple times per packet.
Source§fn push_extension(&mut self, extension_data: &Self::Extension)
fn push_extension(&mut self, extension_data: &Self::Extension)
Provides the extension data to add to the output. The extension should be written as-is
without any transformations.
Source§fn push_payload(&mut self, data: &Self::Payload)
fn push_payload(&mut self, data: &Self::Payload)
Provides the payload data to add to the output. The payload should be written as-is
without any transformations.
Source§fn padding(&mut self, size: u8)
fn padding(&mut self, size: u8)
Provides any padding value the builder was constructed with. The padding value specifies
the number of bytes of zeroes of padding at the end to write. The last byte of padding
must be set to the padding count. e.g. Read more
Auto Trait Implementations§
impl<'a, 'b> Freeze for RtpPacketWriterVec<'a, 'b>
impl<'a, 'b> RefUnwindSafe for RtpPacketWriterVec<'a, 'b>
impl<'a, 'b> Send for RtpPacketWriterVec<'a, 'b>
impl<'a, 'b> Sync for RtpPacketWriterVec<'a, 'b>
impl<'a, 'b> Unpin for RtpPacketWriterVec<'a, 'b>
impl<'a, 'b> UnwindSafe for RtpPacketWriterVec<'a, 'b>
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