pub enum ReliabilityMode {
Reliable,
Partial,
Unreliable,
Adaptive,
}Expand description
Reliability guarantee for packet delivery.
Controls retransmission behaviour and how VCL reacts to packet loss.
Variants§
Reliable
Every packet is delivered exactly once, in order.
Lost packets are retransmitted up to VCLConfig::max_retries times.
Best for VPN, file transfer, financial transactions.
Partial
Only packets marked as critical are retransmitted. Non-critical packets (e.g. position updates) are dropped on loss. Best for gaming where old state is irrelevant.
Unreliable
No retransmission. Lost packets are dropped silently. Best for video/audio streaming where latency matters more than completeness.
Adaptive
VCL monitors network conditions and adjusts retransmission dynamically.
Starts in Unreliable mode, ramps up reliability on detected loss.
Recommended default for unknown network conditions.
Trait Implementations§
Source§impl Clone for ReliabilityMode
impl Clone for ReliabilityMode
Source§fn clone(&self) -> ReliabilityMode
fn clone(&self) -> ReliabilityMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReliabilityMode
impl Debug for ReliabilityMode
Source§impl PartialEq for ReliabilityMode
impl PartialEq for ReliabilityMode
Source§fn eq(&self, other: &ReliabilityMode) -> bool
fn eq(&self, other: &ReliabilityMode) -> bool
self and other values to be equal, and is used by ==.