pub struct Pad(/* private fields */);
Expand description
Controls if and how an RTP packet should have padding appended after the payload
For example to have the builder add padding if required so that packet lengths are always a multiple of 4 bytes:
let mut builder = RtpPacketBuilder::new()
.padded(Pad::round_to(4));
// configure the rest of the packet fields and then build the packet
Implementations§
Auto Trait Implementations§
impl Freeze for Pad
impl RefUnwindSafe for Pad
impl Send for Pad
impl Sync for Pad
impl Unpin for Pad
impl UnwindSafe for Pad
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