pub struct GccInterceptor<P> { /* private fields */ }Expand description
Sender-side GCC bandwidth estimator interceptor.
Every outgoing RTP packet (stamped with its transport-wide sequence number) and every
incoming RTCP packet goes through the engine’s congestion control interceptor
(CongestionControlInterceptor around Gcc); the resulting estimate is written to
the GccHandle shared state.
Trait Implementations§
Source§impl<P: Interceptor> Interceptor for GccInterceptor<P>
impl<P: Interceptor> Interceptor for GccInterceptor<P>
Source§fn bind_local_stream(&mut self, info: &StreamInfo)
fn bind_local_stream(&mut self, info: &StreamInfo)
Register a local stream with the controller.
Source§fn unbind_local_stream(&mut self, info: &StreamInfo)
fn unbind_local_stream(&mut self, info: &StreamInfo)
Remove a local stream.
Source§fn bind_remote_stream(&mut self, info: &StreamInfo)
fn bind_remote_stream(&mut self, info: &StreamInfo)
Source§fn unbind_remote_stream(&mut self, info: &StreamInfo)
fn unbind_remote_stream(&mut self, info: &StreamInfo)
Source§fn with<O, F>(self, f: F) -> O
fn with<O, F>(self, f: F) -> O
f, for nested (#[next]-field)
interceptors written with the Interceptor derive. The result is an
ordinary interceptor and can be placed in a Registry slot. Read moreSource§fn move_local_stream_out(&mut self, info: &StreamInfo)
fn move_local_stream_out(&mut self, info: &StreamInfo)
info moves to another RTP session (its m= section moved to another
transport, as a bundling answer does): it leaves this one without ending, so nothing
says it left (no RTCP BYE, RFC 3550 section 6.6). Unbinds it by default.Source§impl<P: Interceptor> Protocol<TransportMessage<AttributedPacket>, TransportMessage<AttributedPacket>, ()> for GccInterceptor<P>
impl<P: Interceptor> Protocol<TransportMessage<AttributedPacket>, TransportMessage<AttributedPacket>, ()> for GccInterceptor<P>
Source§fn handle_write(&mut self, msg: TaggedPacket) -> Result<(), Self::Error>
fn handle_write(&mut self, msg: TaggedPacket) -> Result<(), Self::Error>
Outgoing packets pass the controller, which records each RTP packet’s size and departure under its transport-wide sequence number.
Must be inner to TwccSenderInterceptor so the sequence number has
already been stamped by the time this method is called.
Source§fn handle_read(&mut self, msg: TaggedPacket) -> Result<(), Self::Error>
fn handle_read(&mut self, msg: TaggedPacket) -> Result<(), Self::Error>
Incoming packets pass the controller, which reads the transport-wide feedback (and the receiver reports, REMB and TMMBR) and announces the estimate on the packet that moved it, so that the NACK responder holds the retransmissions to it (it lowers the attribute by its reserve on the way to the application).
Source§fn handle_timeout(&mut self, now: Self::Time) -> Result<(), Self::Error>
fn handle_timeout(&mut self, now: Self::Time) -> Result<(), Self::Error>
The controller’s own deadlines (feedback that stops while packets are sent).