Enum tun2proxy::SocketProtocol
source · pub enum SocketProtocol {
Tcp,
Udp,
}Variants§
Trait Implementations§
source§impl Clone for SocketProtocol
impl Clone for SocketProtocol
source§fn clone(&self) -> SocketProtocol
fn clone(&self) -> SocketProtocol
Returns a copy 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 SocketProtocol
impl Debug for SocketProtocol
source§impl<'de> Deserialize<'de> for SocketProtocol
impl<'de> Deserialize<'de> for SocketProtocol
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for SocketProtocol
impl Hash for SocketProtocol
source§impl PartialEq for SocketProtocol
impl PartialEq for SocketProtocol
source§fn eq(&self, other: &SocketProtocol) -> bool
fn eq(&self, other: &SocketProtocol) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for SocketProtocol
impl Serialize for SocketProtocol
impl Copy for SocketProtocol
impl Eq for SocketProtocol
impl StructuralPartialEq for SocketProtocol
Auto Trait Implementations§
impl Freeze for SocketProtocol
impl RefUnwindSafe for SocketProtocol
impl Send for SocketProtocol
impl Sync for SocketProtocol
impl Unpin for SocketProtocol
impl UnwindSafe for SocketProtocol
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)