pub enum TransportMode {
Turbo,
Reliable,
Stealth,
}Available on crate feature
std only.Expand description
Abstract transport-robustness tiers, most→least performant. The names are historical (they once mapped to the retired KCP / TCP / FakeTLS legs) and are now opaque ordering labels for the degrade/heal walk, not concrete transports.
Variants§
Turbo
Most performant, least robust tier (the top of the fallback ladder).
Reliable
Middle tier — trades some performance for robustness.
Stealth
Most robust, most obfuscated tier (the bottom of the ladder; the machine degrades no further once here).
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 (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 TransportMode
Source§impl Debug for TransportMode
impl Debug for TransportMode
impl Eq for TransportMode
Source§impl PartialEq for TransportMode
impl PartialEq for TransportMode
Source§fn eq(&self, other: &TransportMode) -> bool
fn eq(&self, other: &TransportMode) -> bool
Tests for
self and other values to be equal, and is used by ==.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