pub enum PacketMux {
Rtp(RtpPacket),
Rtcp(CompoundRtcpPacket),
}Expand description
RTP or RTCP packet.
This is useful when RTP and RTCP packets can be multiplexed in a single channel. See RFC 5761 for more info.
Variants§
Rtp(RtpPacket)
Rtcp(CompoundRtcpPacket)
Trait Implementations§
Source§impl From<CompoundRtcpPacket> for PacketMux
impl From<CompoundRtcpPacket> for PacketMux
Source§fn from(packet: CompoundRtcpPacket) -> Self
fn from(packet: CompoundRtcpPacket) -> Self
Converts to this type from the input type.
Source§impl From<RtcpPacket> for PacketMux
impl From<RtcpPacket> for PacketMux
Source§fn from(packet: RtcpPacket) -> Self
fn from(packet: RtcpPacket) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for PacketMux
impl RefUnwindSafe for PacketMux
impl Send for PacketMux
impl Sync for PacketMux
impl Unpin for PacketMux
impl UnwindSafe for PacketMux
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