pub enum LegType {
Kcp,
Tcp,
FakeTls,
Udp,
}std only.Expand description
Transport-leg discriminant, retained as the metric/telemetry label axis in
crate::observability (the cardinality contract).
NOTE: this is not the live transport registry — the multipath TransportLeg
trait and the KCP / FakeTLS / native-TCP-leg legs it named were removed in the
PhantomUDP rewrite. Kcp and FakeTls survive only as stable label values so
the observability layer’s instrument set is wire-format-stable; they are never
selected as a transport. The actual production transport is Udp (PhantomUDP).
Variants§
Kcp
Retired KCP-over-UDP label (the KCP leg + kcp-tokio dep are gone). Kept as
a stable telemetry label value only.
Tcp
Raw TCP. The native multipath TCP leg was removed; TcpSessionTransport
(a SessionTransport) is the current TCP byte-pipe.
FakeTls
Retired FakeTLS-over-TCP obfuscation label (the leg returned as the
off-by-default mimicry transport). Kept as a stable telemetry label only.
Udp
PhantomUDP — the native reliable transport over raw UDP (Phase 1); the production transport.
Implementations§
Source§impl LegType
impl LegType
Sourcepub fn is_reliable(&self) -> bool
pub fn is_reliable(&self) -> bool
Whether this leg type provides reliability at transport level
Sourcepub fn is_obfuscated(&self) -> bool
pub fn is_obfuscated(&self) -> bool
Whether this leg type uses encryption/obfuscation