pub struct QuicVersion(/* private fields */);Expand description
A raw QUIC version value, preserving unknown and reserved versions.
Implementations§
Source§impl QuicVersion
impl QuicVersion
Sourcepub const NEGOTIATION: Self
pub const NEGOTIATION: Self
Version Negotiation (0x00000000).
Sourcepub const fn is_reserved(self) -> bool
pub const fn is_reserved(self) -> bool
Returns whether this is a reserved version with the 0x?a?a?a?a pattern.
Trait Implementations§
Source§impl Clone for QuicVersion
impl Clone for QuicVersion
impl Copy for QuicVersion
Source§impl Debug for QuicVersion
impl Debug for QuicVersion
impl Eq for QuicVersion
Source§impl Hash for QuicVersion
impl Hash for QuicVersion
Source§impl PartialEq for QuicVersion
impl PartialEq for QuicVersion
impl StructuralPartialEq for QuicVersion
Auto Trait Implementations§
impl Freeze for QuicVersion
impl RefUnwindSafe for QuicVersion
impl Send for QuicVersion
impl Sync for QuicVersion
impl Unpin for QuicVersion
impl UnsafeUnpin for QuicVersion
impl UnwindSafe for QuicVersion
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