pub enum QuicLongPacketType {
Initial,
ZeroRtt,
Handshake,
Retry,
}Expand description
A semantic long-header packet type for a known QUIC version.
Variants§
Implementations§
Source§impl QuicLongPacketType
impl QuicLongPacketType
Sourcepub const fn from_raw(version: QuicVersion, raw_type: u8) -> Option<Self>
pub const fn from_raw(version: QuicVersion, raw_type: u8) -> Option<Self>
Maps a version and its two raw long-header type bits to a semantic packet type.
Sourcepub const fn raw_type(self, version: QuicVersion) -> Option<u8>
pub const fn raw_type(self, version: QuicVersion) -> Option<u8>
Maps this semantic packet type to its two raw long-header type bits for a version.
Trait Implementations§
Source§impl Clone for QuicLongPacketType
impl Clone for QuicLongPacketType
impl Copy for QuicLongPacketType
Source§impl Debug for QuicLongPacketType
impl Debug for QuicLongPacketType
impl Eq for QuicLongPacketType
Source§impl Hash for QuicLongPacketType
impl Hash for QuicLongPacketType
Source§impl PartialEq for QuicLongPacketType
impl PartialEq for QuicLongPacketType
impl StructuralPartialEq for QuicLongPacketType
Auto Trait Implementations§
impl Freeze for QuicLongPacketType
impl RefUnwindSafe for QuicLongPacketType
impl Send for QuicLongPacketType
impl Sync for QuicLongPacketType
impl Unpin for QuicLongPacketType
impl UnsafeUnpin for QuicLongPacketType
impl UnwindSafe for QuicLongPacketType
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