pub struct ShortHeader {
pub spin: bool,
pub key_phase: bool,
pub dst_cid: ConnectionId,
pub packet_number: u32,
pub packet_number_len: u8,
}Expand description
Short-header packet.
Fields§
§spin: boolSpin bit value.
key_phase: boolKey phase bit value.
dst_cid: ConnectionIdDestination connection ID.
packet_number: u32Truncated packet number value.
packet_number_len: u8Encoded packet-number width in bytes (1..=4).
Trait Implementations§
Source§impl Clone for ShortHeader
impl Clone for ShortHeader
Source§fn clone(&self) -> ShortHeader
fn clone(&self) -> ShortHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShortHeader
impl Debug for ShortHeader
Source§impl PartialEq for ShortHeader
impl PartialEq for ShortHeader
impl Eq for ShortHeader
impl StructuralPartialEq for ShortHeader
Auto Trait Implementations§
impl Freeze for ShortHeader
impl RefUnwindSafe for ShortHeader
impl Send for ShortHeader
impl Sync for ShortHeader
impl Unpin for ShortHeader
impl UnsafeUnpin for ShortHeader
impl UnwindSafe for ShortHeader
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).