pub enum PacketMux<P = RtpPacket> {
Rtp(P),
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(P)
Rtcp(CompoundRtcpPacket)
Trait Implementations§
Source§impl<P> From<CompoundRtcpPacket> for PacketMux<P>
impl<P> From<CompoundRtcpPacket> for PacketMux<P>
Source§fn from(packet: CompoundRtcpPacket) -> Self
fn from(packet: CompoundRtcpPacket) -> Self
Converts to this type from the input type.
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<OrderedRtpPacket> for PacketMux<OrderedRtpPacket>
impl From<OrderedRtpPacket> for PacketMux<OrderedRtpPacket>
Source§fn from(packet: OrderedRtpPacket) -> Self
fn from(packet: OrderedRtpPacket) -> Self
Converts to this type from the input type.
Source§impl<P> From<RtcpPacket> for PacketMux<P>
impl<P> From<RtcpPacket> for PacketMux<P>
Source§fn from(packet: RtcpPacket) -> Self
fn from(packet: RtcpPacket) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<P> Freeze for PacketMux<P>where
P: Freeze,
impl<P> RefUnwindSafe for PacketMux<P>where
P: RefUnwindSafe,
impl<P> Send for PacketMux<P>where
P: Send,
impl<P> Sync for PacketMux<P>where
P: Sync,
impl<P> Unpin for PacketMux<P>where
P: Unpin,
impl<P> UnwindSafe for PacketMux<P>where
P: UnwindSafe,
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