pub struct Header {
pub ty: PacketType,
pub version: u32,
pub dcid: Range<usize>,
pub scid: Range<usize>,
pub token: Range<usize>,
pub pn_offset: usize,
pub end: usize,
}Expand description
A header parsed before header protection is removed. Ranges index the datagram.
Fields§
§ty: PacketType§version: u32§dcid: Range<usize>§scid: Range<usize>§token: Range<usize>Initial: the token; Retry: the token; VN: the version list.
pn_offset: usizeOffset of the packet number (protected).
end: usizeEnd of this packet in the datagram (coalesced packets follow).
Trait Implementations§
Auto Trait Implementations§
impl Forget for Header
impl Freeze for Header
impl Move for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnsafeUnpin for Header
impl UnwindSafe for Header
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