pub enum EcnInitiation {
RtpAndRtcp,
LeapOfFaith,
}Expand description
How a stream starts using ECN.
Variants§
RtpAndRtcp
RFC 6679 section 7.2.1: probes, then every packet once feedback confirmed them (the method every implementation MUST have).
LeapOfFaith
RFC 6679 section 7.2.3, leap of faith: every packet is sent ECT from the first, as browsers that implement L4S do. Failure detection (section 7.4) still applies. The RFC allows it only for sessions that accept its limitations (the first packets may be lost on a path that drops ECT traffic).
Implementations§
Source§impl EcnInitiation
impl EcnInitiation
Sourcepub fn one_per_transport<K: PartialEq + Copy>(
sections: &[(K, Option<EcnInitiation>)],
) -> Vec<Option<EcnInitiation>>
pub fn one_per_transport<K: PartialEq + Copy>( sections: &[(K, Option<EcnInitiation>)], ) -> Vec<Option<EcnInitiation>>
RFC 6679 section 7.2: “all participants in an RTP session MUST use the same ECN initiation method”. Given each section’s transport and the method its negotiation gave, the method each section’s streams use: the first method negotiated on the transport, for every section on it that uses ECN at all (bundled sections share one RTP session, RFC 9143). A section without ECN stays without.