pub struct IncomingRtpPacket { /* private fields */ }Expand description
RTP packet wrapper containing also the instant when the packet was received.
Implementations§
Methods from Deref<Target = RtpPacket>§
Sourcepub fn payload_type(&self) -> u8
pub fn payload_type(&self) -> u8
Get the payload type.
Note: Only the lower 7 bits are used.
Sourcepub fn sequence_number(&self) -> u16
pub fn sequence_number(&self) -> u16
Get the RTP sequence number.
Sourcepub fn padding(&self) -> u8
pub fn padding(&self) -> u8
Get length of the optional padding.
Zero means that the padding is not used at all.
Sourcepub fn stripped_payload(&self) -> Bytes
pub fn stripped_payload(&self) -> Bytes
Get the packet payload without any padding.
Trait Implementations§
Source§impl AsRef<IncomingRtpPacket> for OrderedRtpPacket
impl AsRef<IncomingRtpPacket> for OrderedRtpPacket
Source§fn as_ref(&self) -> &IncomingRtpPacket
fn as_ref(&self) -> &IncomingRtpPacket
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<RtpPacket> for IncomingRtpPacket
impl AsRef<RtpPacket> for IncomingRtpPacket
Source§impl Borrow<IncomingRtpPacket> for OrderedRtpPacket
impl Borrow<IncomingRtpPacket> for OrderedRtpPacket
Source§fn borrow(&self) -> &IncomingRtpPacket
fn borrow(&self) -> &IncomingRtpPacket
Immutably borrows from an owned value. Read more
Source§impl Borrow<RtpPacket> for IncomingRtpPacket
impl Borrow<RtpPacket> for IncomingRtpPacket
Source§impl Clone for IncomingRtpPacket
impl Clone for IncomingRtpPacket
Source§fn clone(&self) -> IncomingRtpPacket
fn clone(&self) -> IncomingRtpPacket
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Deref for IncomingRtpPacket
impl Deref for IncomingRtpPacket
Source§impl From<IncomingRtpPacket> for PacketMux<IncomingRtpPacket>
impl From<IncomingRtpPacket> for PacketMux<IncomingRtpPacket>
Source§fn from(packet: IncomingRtpPacket) -> Self
fn from(packet: IncomingRtpPacket) -> Self
Converts to this type from the input type.
Source§impl From<IncomingRtpPacket> for RtpPacket
impl From<IncomingRtpPacket> for RtpPacket
Source§fn from(packet: IncomingRtpPacket) -> Self
fn from(packet: IncomingRtpPacket) -> Self
Converts to this type from the input type.
Source§impl From<OrderedRtpPacket> for IncomingRtpPacket
impl From<OrderedRtpPacket> for IncomingRtpPacket
Source§fn from(packet: OrderedRtpPacket) -> Self
fn from(packet: OrderedRtpPacket) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for IncomingRtpPacket
impl RefUnwindSafe for IncomingRtpPacket
impl Send for IncomingRtpPacket
impl Sync for IncomingRtpPacket
impl Unpin for IncomingRtpPacket
impl UnwindSafe for IncomingRtpPacket
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