#[non_exhaustive]pub enum NackControl {
LocalRtxTime {
payload_type_rtx: u8,
rtx_time: Option<Duration>,
},
RemoteRtxTime {
payload_type_rtx: u8,
rtx_time: Option<Duration>,
},
}Expand description
What a session description negotiated for retransmission (RFC 4588), told to the NACK interceptors while they run.
It travels as an Attribute::Custom on an empty RTCP packet written into the chain
(NackControl::into_packet). Each NACK interceptor reads what is its own and hands the
packet on.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
LocalRtxTime
The rtx-time (RFC 4588 8.1) this endpoint announced for its retransmission format
payload_type_rtx: how long the NackResponderInterceptor
keeps a sent packet of a stream repaired under that payload type available. It replaces
the builder’s with_max_packet_age for those streams; None returns them to it.
Fields
RemoteRtxTime
The rtx-time the remote endpoint announced for its retransmission format
payload_type_rtx: past it the remote sender no longer has the packet, so the
NackGeneratorInterceptor stops asking for a packet
of a stream repaired under that payload type that has been missing for longer, or for
longer than the builder’s with_max_packet_age, whichever is shorter. None leaves
the builder’s value alone.
Implementations§
Source§impl NackControl
impl NackControl
Sourcepub fn into_packet(self, now: Instant) -> TaggedPacket
pub fn into_packet(self, now: Instant) -> TaggedPacket
The packet that carries this to the NACK interceptors when written into the chain at
now.