#[non_exhaustive]pub enum CircuitBreakerPacketSize {
SendingWindow,
LastFrames,
}Expand description
How the congestion breaker takes s, the packet size of the TCP throughput equation (RFC 8083 section 4.3).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
SendingWindow
The mean size of the RTP packets sent over the reporting intervals the sending rate is measured over: s = (bytes sent) / (packets sent) over the last CB_INTERVAL intervals. The default: s and the rate it is compared with describe the same packets.
LastFrames
Section 3’s definition as written: the mean size of the packets of the last 4 * G frames. For speech with silence frames between talkspurts s is then the silence frames’ size (23 bytes) while the rate is that of the talkspurts, and a call over a link with 1 to 5 % loss is ceased.
Trait Implementations§
Source§impl Clone for PacketSize
impl Clone for PacketSize
impl Copy for PacketSize
Source§impl Debug for PacketSize
impl Debug for PacketSize
Source§impl Default for PacketSize
impl Default for PacketSize
impl Eq for PacketSize
Source§impl PartialEq for PacketSize
impl PartialEq for PacketSize
impl StructuralPartialEq for PacketSize
Auto Trait Implementations§
impl Forget for PacketSize
impl Freeze for PacketSize
impl Move for PacketSize
impl RefUnwindSafe for PacketSize
impl Send for PacketSize
impl Sync for PacketSize
impl Unpin for PacketSize
impl UnsafeUnpin for PacketSize
impl UnwindSafe for PacketSize
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more