pub enum Type {
Long(Type),
Short(OneRtt),
}Expand description
The Type of the packet
The Type is only extracted from the first 3 or 4 bits of the first byte, these contents are not protected. For simplicity and future-oriented considerations, the Version of the long packet header is also considered part of the Type, such as the Initial packet of V1 version, That is, the Initial packet only makes sense under the V1 version, and it is uncertain whether future versions of QUIC will still have Initial packets. The SpinBit of the short packet header should be part of the short packet header, but for simplicity, the SpinBit is also part of the 1RTT header type.
Variants§
Implementations§
Trait Implementations§
impl Copy for Type
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnsafeUnpin for Type
impl UnwindSafe for Type
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