pub struct RpsiBuilder<'a> { /* private fields */ }
Expand description
Reference Picture Selection Indication builder
Implementations§
Source§impl<'a> RpsiBuilder<'a>
impl<'a> RpsiBuilder<'a>
Sourcepub fn payload_type(self, payload_type: u8) -> Self
pub fn payload_type(self, payload_type: u8) -> Self
Set the payload type that this RPSI should reference
Sourcepub fn native_data(
self,
data: impl Into<Cow<'a, [u8]>>,
bit_overrun: u8,
) -> Self
pub fn native_data( self, data: impl Into<Cow<'a, [u8]>>, bit_overrun: u8, ) -> Self
Set the codec specific bit string for thie RPSI along with how many bits in the last byte must be ignored.
Sourcepub fn native_data_owned(
self,
data: impl Into<Cow<'a, [u8]>>,
bit_overrun: u8,
) -> RpsiBuilder<'static>
pub fn native_data_owned( self, data: impl Into<Cow<'a, [u8]>>, bit_overrun: u8, ) -> RpsiBuilder<'static>
Set the codec specific bit string for thie RPSI along with how many bits in the last byte must be ignored.
This is the owned variant that can leave the calling scope.
Trait Implementations§
Source§impl<'a> Debug for RpsiBuilder<'a>
impl<'a> Debug for RpsiBuilder<'a>
Source§impl<'a> Default for RpsiBuilder<'a>
impl<'a> Default for RpsiBuilder<'a>
Source§fn default() -> RpsiBuilder<'a>
fn default() -> RpsiBuilder<'a>
Returns the “default value” for a type. Read more
Source§impl<'a> FciBuilder<'a> for RpsiBuilder<'a>
impl<'a> FciBuilder<'a> for RpsiBuilder<'a>
Source§impl RtcpPacketWriter for RpsiBuilder<'_>
impl RtcpPacketWriter for RpsiBuilder<'_>
Source§fn calculate_size(&self) -> Result<usize, RtcpWriteError>
fn calculate_size(&self) -> Result<usize, RtcpWriteError>
Calculates the size required to write this RTCP packet. Read more
Source§fn write_into_unchecked(&self, buf: &mut [u8]) -> usize
fn write_into_unchecked(&self, buf: &mut [u8]) -> usize
Writes this RTCP packet into
buf
without any validity checks. Read moreSource§fn get_padding(&self) -> Option<u8>
fn get_padding(&self) -> Option<u8>
Gets the padding that was configured for this RTCP packet.
Auto Trait Implementations§
impl<'a> Freeze for RpsiBuilder<'a>
impl<'a> RefUnwindSafe for RpsiBuilder<'a>
impl<'a> Send for RpsiBuilder<'a>
impl<'a> Sync for RpsiBuilder<'a>
impl<'a> Unpin for RpsiBuilder<'a>
impl<'a> UnwindSafe for RpsiBuilder<'a>
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
Source§impl<T> RtcpPacketWriterExt for Twhere
T: RtcpPacketWriter,
impl<T> RtcpPacketWriterExt for Twhere
T: RtcpPacketWriter,
Source§fn write_into(&self, buf: &mut [u8]) -> Result<usize, RtcpWriteError>
fn write_into(&self, buf: &mut [u8]) -> Result<usize, RtcpWriteError>
Writes the Custom packet into
buf
. Read more