usediscortp::rtp::RtpPacket;usesuper::*;#[derive(Clone, Debug, Eq, PartialEq)]#[non_exhaustive]/// Opus audio packet, received from another stream
////// `payload_offset` contains the true payload location within the raw packet's `payload()`,
/// if extensions or raw packet data are required.
pubstructRtpData{/// Raw RTP packet data.
////// Includes the SSRC (i.e., sender) of this packet.
pubpacket: Bytes,
/// Byte index into the packet body (after headers) for where the payload begins.
pubpayload_offset:usize,
/// Number of bytes at the end of the packet to discard.
pubpayload_end_pad:usize,
}implRtpData{/// Create a zero-copy view of the inner RTP packet.
////// This allows easy access to packet header fields, taking them from the underlying
/// `Bytes` as needed while handling endianness etc.
pubfnrtp(&'_self)->RtpPacket<'_>{RtpPacket::new(&self.packet).expect("FATAL: leaked illegally small RTP packet from UDP Rx task.")}}