pub struct PathChanged;Expand description
A control message: the transport moved to another selected candidate pair (an ICE restart,
a switch to another pair, a move to another network), after its first one. The peer
connection reads it into the chain on the read leg, as an empty RTCP packet
(PathChanged::into_packet), so it passes the congestion controllers first: they sit
wire-most. Each starts its estimate over and forgets what it sent before (RFC 8836
section 2, requirement 1: a congestion controller reacts to a change of the path; as
libwebrtc’s RtpTransportControllerSend::OnNetworkRouteChanged restarts the bandwidth
estimate and has its feedback adapter report only the packets sent on the new route).
The congestion controllers also follow the addresses inbound packets arrive between, which
shows most changes; this one is told also when the addresses do not change (a TURN relay
that keeps them, or an application that hands every datagram over with one placeholder
address pair). With several transports it is tagged with the session (RtpSession) of
the transport whose pair changed, and reaches only that session’s instances.
Implementations§
Source§impl PathChanged
impl PathChanged
Sourcepub fn into_packet(self, now: Instant, session: Option<usize>) -> TaggedPacket
pub fn into_packet(self, now: Instant, session: Option<usize>) -> TaggedPacket
The packet that carries this into the chain’s read leg at now, tagged with
session when the peer connection runs several transports.