pub struct XrBuilder { /* private fields */ }
Expand description
XR packet builder
Implementations§
Trait Implementations§
Source§impl<'a> From<XrBuilder> for PacketBuilder<'a>
impl<'a> From<XrBuilder> for PacketBuilder<'a>
Source§impl RtcpPacketWriter for XrBuilder
impl RtcpPacketWriter for XrBuilder
Source§fn calculate_size(&self) -> Result<usize, RtcpWriteError>
fn calculate_size(&self) -> Result<usize, RtcpWriteError>
Calculates the size required to write this Xr packet.
Returns an error if:
- The report block data is too large
- The report block fails to calculate a valid size
Source§fn write_into_unchecked(&self, buf: &mut [u8]) -> usize
fn write_into_unchecked(&self, buf: &mut [u8]) -> usize
Write this Xr packet data into buf
without any validity checks.
Returns the number of bytes written.
§Panic
Panics if the buf is not large enough.
Source§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 Freeze for XrBuilder
impl !RefUnwindSafe for XrBuilder
impl Send for XrBuilder
impl Sync for XrBuilder
impl Unpin for XrBuilder
impl !UnwindSafe for XrBuilder
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