pub enum EcnMarking {
Rfc6679,
L4s,
}Expand description
Which ECT codepoint a stream that marks sends.
Variants§
Rfc6679
RFC 6679 section 7.3.1: ECT(0), unless the receiver asked for ECT(1) or a random
choice (EctPreference).
L4s
ECT(1), the L4S identifier (RFC 9331), whatever the receiver asked: what browsers that send L4S do.
Implementations§
Source§impl EcnMarking
impl EcnMarking
Sourcepub fn codepoint(
self,
preference: Option<EctPreference>,
coin: bool,
) -> EcnCodepoint
pub fn codepoint( self, preference: Option<EctPreference>, coin: bool, ) -> EcnCodepoint
The codepoint the next packet goes out with, given the receiver’s preference;
coin is a random bit, used for EctPreference::Random.
Trait Implementations§
Source§impl Clone for EcnMarking
impl Clone for EcnMarking
impl Copy for EcnMarking
Source§impl Debug for EcnMarking
impl Debug for EcnMarking
Source§impl Default for EcnMarking
impl Default for EcnMarking
impl Eq for EcnMarking
Source§impl PartialEq for EcnMarking
impl PartialEq for EcnMarking
impl StructuralPartialEq for EcnMarking
Auto Trait Implementations§
impl Forget for EcnMarking
impl Freeze for EcnMarking
impl Move for EcnMarking
impl RefUnwindSafe for EcnMarking
impl Send for EcnMarking
impl Sync for EcnMarking
impl Unpin for EcnMarking
impl UnsafeUnpin for EcnMarking
impl UnwindSafe for EcnMarking
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