pub struct PacketFlags(pub u16);Expand description
Packet flags bitfield (16-bit).
Tuple Fields§
§0: u16Implementations§
Source§impl PacketFlags
impl PacketFlags
Sourcepub const UNRELIABLE: u16 = 0x0008
pub const UNRELIABLE: u16 = 0x0008
Fire-and-forget (no retransmission)
Sourcepub const COMPRESSED: u16 = 0x0040
pub const COMPRESSED: u16 = 0x0040
Payload is compressed
Sourcepub const REKEY: u16 = 0x0100
pub const REKEY: u16 = 0x0100
Sender is rekeying — receiver must derive the next AEAD key from the resumption-secret HKDF chain before decrypting this packet (Phase 1.5).
Sourcepub const PATH_VALIDATION: u16 = 0x0200
pub const PATH_VALIDATION: u16 = 0x0200
Path-validation challenge / response packet for multi-path migration (Phase 4.2). Payload carries the 32-byte challenge or response.
Sourcepub const COALESCED: u16 = 0x0400
pub const COALESCED: u16 = 0x0400
Payload is a coalesced bundle of inner packets in
[count: u16][len1: u16][payload1]... format (Phase 2.5).
Sourcepub const WINDOW_UPDATE: u16 = 0x0800
pub const WINDOW_UPDATE: u16 = 0x0800
Per-stream flow control update (Phase 4.3). Payload is a
big-endian u32 carrying the receiver’s newly-available
window in bytes (absolute window size, NOT a delta — simpler
and self-correcting under packet loss).
Sourcepub const fn is_reliable(&self) -> bool
pub const fn is_reliable(&self) -> bool
Check if reliable delivery is required
Sourcepub const fn is_control(&self) -> bool
pub const fn is_control(&self) -> bool
Check if this is a control packet
Trait Implementations§
Source§impl Clone for PacketFlags
impl Clone for PacketFlags
Source§fn clone(&self) -> PacketFlags
fn clone(&self) -> PacketFlags
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PacketFlags
Source§impl Debug for PacketFlags
impl Debug for PacketFlags
Source§impl Default for PacketFlags
impl Default for PacketFlags
Source§fn default() -> PacketFlags
fn default() -> PacketFlags
Returns the “default value” for a type. Read more
impl Eq for PacketFlags
Source§impl PartialEq for PacketFlags
impl PartialEq for PacketFlags
Source§fn eq(&self, other: &PacketFlags) -> bool
fn eq(&self, other: &PacketFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PacketFlags
Auto Trait Implementations§
impl Freeze for PacketFlags
impl RefUnwindSafe for PacketFlags
impl Send for PacketFlags
impl Sync for PacketFlags
impl Unpin for PacketFlags
impl UnsafeUnpin for PacketFlags
impl UnwindSafe for PacketFlags
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