#[repr(C)]pub enum CongestionControlAlgorithm {
Reno,
CUBIC,
BBR,
BBR2,
}
Expand description
Available congestion control algorithms.
This enum provides currently available list of congestion control algorithms.
Variants§
Reno
Reno congestion control algorithm. reno
in a string form.
CUBIC
CUBIC congestion control algorithm (default). cubic
in a string form.
BBR
BBR congestion control algorithm. bbr
in a string form.
BBR2
BBRv2 congestion control algorithm. bbr2
in a string form.
Trait Implementations§
source§impl Clone for CongestionControlAlgorithm
impl Clone for CongestionControlAlgorithm
source§fn clone(&self) -> CongestionControlAlgorithm
fn clone(&self) -> CongestionControlAlgorithm
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for CongestionControlAlgorithm
impl Debug for CongestionControlAlgorithm
source§impl FromStr for CongestionControlAlgorithm
impl FromStr for CongestionControlAlgorithm
source§impl PartialEq<CongestionControlAlgorithm> for CongestionControlAlgorithm
impl PartialEq<CongestionControlAlgorithm> for CongestionControlAlgorithm
source§fn eq(&self, other: &CongestionControlAlgorithm) -> bool
fn eq(&self, other: &CongestionControlAlgorithm) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CongestionControlAlgorithm
impl Eq for CongestionControlAlgorithm
impl StructuralEq for CongestionControlAlgorithm
impl StructuralPartialEq for CongestionControlAlgorithm
Auto Trait Implementations§
impl RefUnwindSafe for CongestionControlAlgorithm
impl Send for CongestionControlAlgorithm
impl Sync for CongestionControlAlgorithm
impl Unpin for CongestionControlAlgorithm
impl UnwindSafe for CongestionControlAlgorithm
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.