#[repr(u8)]pub enum ExtensionType {
RatchetId = 1,
KeyEpoch = 2,
SwarmRole = 3,
RelayHop = 4,
InterestMask = 5,
RedundancyGroup = 6,
CompressionHint = 7,
FragmentInfo = 8,
PathId = 9,
PriorityHint = 10,
CausalityRef = 11,
End = 255,
}Expand description
Extension type identifiers
Variants§
RatchetId = 1
Current ratchet epoch (4 bytes)
KeyEpoch = 2
Key generation number (2 bytes)
SwarmRole = 3
Node role in swarm (1 byte)
RelayHop = 4
Hop count for relayed packets (1 byte)
InterestMask = 5
Interest subscription bitmap (8 bytes)
RedundancyGroup = 6
FEC group identifier (2 bytes)
CompressionHint = 7
Compression algorithm used (1 byte)
FragmentInfo = 8
Fragment index + total (4 bytes)
PathId = 9
Multi-path identifier (2 bytes)
PriorityHint = 10
Scheduling priority (1 byte)
CausalityRef = 11
Vector clock reference (variable)
End = 255
End of extensions marker
Implementations§
Trait Implementations§
Source§impl Clone for ExtensionType
impl Clone for ExtensionType
Source§fn clone(&self) -> ExtensionType
fn clone(&self) -> ExtensionType
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 ExtensionType
impl Debug for ExtensionType
Source§impl PartialEq for ExtensionType
impl PartialEq for ExtensionType
impl Copy for ExtensionType
impl Eq for ExtensionType
impl StructuralPartialEq for ExtensionType
Auto Trait Implementations§
impl Freeze for ExtensionType
impl RefUnwindSafe for ExtensionType
impl Send for ExtensionType
impl Sync for ExtensionType
impl Unpin for ExtensionType
impl UnsafeUnpin for ExtensionType
impl UnwindSafe for ExtensionType
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