Enum s2n_quic_core::transmission::constraint::Constraint
source · pub enum Constraint {
None,
RetransmissionOnly,
CongestionLimited,
AmplificationLimited,
}
Variants§
None
No constraints
RetransmissionOnly
Congestion controller fast retransmission
CongestionLimited
Congestion controller window size
AmplificationLimited
Anti-amplification limits
Implementations§
source§impl Constraint
impl Constraint
sourcepub fn is_amplification_limited(self) -> bool
pub fn is_amplification_limited(self) -> bool
True if the transmission is constrained by anti-amplification limits
sourcepub fn is_congestion_limited(self) -> bool
pub fn is_congestion_limited(self) -> bool
True if the transmission is constrained by congestion controller window size
sourcepub fn is_retransmission_only(self) -> bool
pub fn is_retransmission_only(self) -> bool
True if the transmission is constrained to only retransmissions due to the congestion controller being in the fast retransmission state
sourcepub fn can_transmit(self) -> bool
pub fn can_transmit(self) -> bool
True if new data can be transmitted
sourcepub fn can_retransmit(self) -> bool
pub fn can_retransmit(self) -> bool
True if lost data can be retransmitted
Trait Implementations§
source§impl Clone for Constraint
impl Clone for Constraint
source§fn clone(&self) -> Constraint
fn clone(&self) -> Constraint
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 Constraint
impl Debug for Constraint
source§impl Ord for Constraint
impl Ord for Constraint
source§fn cmp(&self, other: &Constraint) -> Ordering
fn cmp(&self, other: &Constraint) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for Constraint
impl PartialEq for Constraint
source§fn eq(&self, other: &Constraint) -> bool
fn eq(&self, other: &Constraint) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for Constraint
impl PartialOrd for Constraint
source§fn partial_cmp(&self, other: &Constraint) -> Option<Ordering>
fn partial_cmp(&self, other: &Constraint) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Query for Constraint
impl Query for Constraint
impl Copy for Constraint
impl Eq for Constraint
impl StructuralPartialEq for Constraint
Auto Trait Implementations§
impl Freeze for Constraint
impl RefUnwindSafe for Constraint
impl Send for Constraint
impl Sync for Constraint
impl Unpin for Constraint
impl UnwindSafe for Constraint
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