#[repr(u8)]pub enum EcnCodepoint {
Ect1 = 1,
Ect0 = 2,
Ce = 3,
}Expand description
An ECN codepoint, in the two bits of the IP header’s TOS/traffic-class field that carry it.
Declared here rather than re-exported from quinn-udp, so that this
seam carries no QUIC dependency — the same trade RecvMeta makes. The
discriminants are the wire values, so the conversion at the one place
that needs it is a match, not a table.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for EcnCodepoint
impl Clone for EcnCodepoint
Source§fn clone(&self) -> EcnCodepoint
fn clone(&self) -> EcnCodepoint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EcnCodepoint
Source§impl Debug for EcnCodepoint
impl Debug for EcnCodepoint
impl Eq for EcnCodepoint
Source§impl PartialEq for EcnCodepoint
impl PartialEq for EcnCodepoint
impl StructuralPartialEq for EcnCodepoint
Auto Trait Implementations§
impl Freeze for EcnCodepoint
impl RefUnwindSafe for EcnCodepoint
impl Send for EcnCodepoint
impl Sync for EcnCodepoint
impl Unpin for EcnCodepoint
impl UnsafeUnpin for EcnCodepoint
impl UnwindSafe for EcnCodepoint
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