pub enum LegType {
Kcp,
Tcp,
FakeTls,
}Expand description
Transport modes supported by the system
Variants§
Kcp
KCP over UDP - fast, reliable, primary transport
Tcp
Raw TCP - reliable fallback
FakeTls
FakeTLS over TCP - obfuscated for DPI bypass
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
Trait Implementations§
Source§impl BorshDeserialize for LegType
impl BorshDeserialize for LegType
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for LegType
impl BorshSerialize for LegType
impl Copy for LegType
impl Eq for LegType
impl StructuralPartialEq for LegType
Auto Trait Implementations§
impl Freeze for LegType
impl RefUnwindSafe for LegType
impl Send for LegType
impl Sync for LegType
impl Unpin for LegType
impl UnsafeUnpin for LegType
impl UnwindSafe for LegType
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