pub enum TransportMode {
Tcp,
Udp,
Auto,
}Expand description
Transport protocol used by the connection.
Controls whether VCL uses TCP or UDP as the underlying transport.
In Auto mode, VCL selects the transport based on the ReliabilityMode.
Variants§
Tcp
TCP transport — reliable, ordered delivery. Best for VPN tunnels, file transfer, audit logging.
Udp
UDP transport — low latency, unordered. Best for gaming, real-time audio/video, telemetry.
Auto
VCL automatically selects TCP or UDP based on ReliabilityMode:
Reliable→ TCPPartial/Unreliable→ UDPAdaptive→ starts UDP, upgrades to TCP on packet loss
Trait Implementations§
Source§impl Clone for TransportMode
impl Clone for TransportMode
Source§fn clone(&self) -> TransportMode
fn clone(&self) -> TransportMode
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 TransportMode
impl Debug for TransportMode
Source§impl PartialEq for TransportMode
impl PartialEq for TransportMode
impl StructuralPartialEq for TransportMode
Auto Trait Implementations§
impl Freeze for TransportMode
impl RefUnwindSafe for TransportMode
impl Send for TransportMode
impl Sync for TransportMode
impl Unpin for TransportMode
impl UnsafeUnpin for TransportMode
impl UnwindSafe for TransportMode
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