pub enum TunnelType {
Tcp = 0,
Udp = 1,
Http = 2,
}Expand description
隧道传输协议类型。
Variants§
Tcp = 0
TCP 隧道 — 每个外部连接使用一条独立数据通道
Udp = 1
UDP 隧道 — 一条持久数据通道承载帧封装的数据报
Http = 2
HTTP 隧道 — v0.1 等价于 TCP
Implementations§
Source§impl TunnelType
impl TunnelType
Trait Implementations§
Source§impl Clone for TunnelType
impl Clone for TunnelType
Source§fn clone(&self) -> TunnelType
fn clone(&self) -> TunnelType
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 TunnelType
Source§impl Debug for TunnelType
impl Debug for TunnelType
Source§impl<'de> Deserialize<'de> for TunnelType
impl<'de> Deserialize<'de> for TunnelType
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TunnelType
impl Display for TunnelType
impl Eq for TunnelType
Source§impl PartialEq for TunnelType
impl PartialEq for TunnelType
Source§impl Serialize for TunnelType
impl Serialize for TunnelType
impl StructuralPartialEq for TunnelType
Auto Trait Implementations§
impl Freeze for TunnelType
impl RefUnwindSafe for TunnelType
impl Send for TunnelType
impl Sync for TunnelType
impl Unpin for TunnelType
impl UnsafeUnpin for TunnelType
impl UnwindSafe for TunnelType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.