pub struct GccHandle { /* private fields */ }Expand description
Read-only handle to the latest GCC bandwidth estimate.
Clone-able and thread-safe — share freely across application threads.
Implementations§
Source§impl GccHandle
impl GccHandle
Sourcepub fn target_bitrate_bps(&self) -> Option<u32>
pub fn target_bitrate_bps(&self) -> Option<u32>
The target an encoder follows, in bps: the estimate less the retransmission reserve
the NACK responder holds while it repairs (RFC 4588 section 7: “the sender SHOULD NOT
send retransmission packets without reducing the packet rate and bitrate of the
original stream”), never under the minimum bit rate
(GccInterceptorBuilder::with_min_bitrate). The estimate itself while nothing is
being repaired, and in a chain without a NACK responder. None if no TWCC feedback has been processed yet.
Sourcepub fn estimate_bps(&self) -> Option<u32>
pub fn estimate_bps(&self) -> Option<u32>
The latest estimated available send bandwidth in bps, which the original media and
the retransmissions share; None if no TWCC feedback has been processed yet.
Sourcepub fn stats(&self) -> EstimatorStats
pub fn stats(&self) -> EstimatorStats
The estimator’s two halves (draft-ietf-rmcat-gcc-02 sections 5 and 6: the estimate is the lower of the delay-based and the loss-based one), its smoothed loss fraction and the round-trip time it works with.