#[non_exhaustive]pub enum Phase {
SlowStart,
CongestionAvoidance,
}Expand description
FileCC algorithm phase (specs/rules/srt-congestion.md rules 4-5). Slow
Start (§5.2.1.1) runs exactly once at the start of a connection; it
transitions to Congestion Avoidance (§5.2.1.2) on the first loss,
CWND_SIZE exceeding its maximum, or a timeout — and never transitions
back (L3323-3326).
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.
SlowStart
§5.2.1.1 — probes for available bandwidth; runs exactly once.
CongestionAvoidance
§5.2.1.2 — entered once slow start ends; the steady-state AIMD phase.
Implementations§
Trait Implementations§
impl Copy for Phase
impl Eq for Phase
impl StructuralPartialEq for Phase
Auto Trait Implementations§
impl Freeze for Phase
impl RefUnwindSafe for Phase
impl Send for Phase
impl Sync for Phase
impl Unpin for Phase
impl UnsafeUnpin for Phase
impl UnwindSafe for Phase
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