#[repr(u8)]pub enum SocketType {
Tcp = 0,
Socks5 = 1,
Http = 2,
Utp = 3,
I2p = 4,
TcpSsl = 5,
Socks5Ssl = 6,
HttpSsl = 7,
UtpSsl = 8,
}Variants§
Trait Implementations§
Source§impl Clone for SocketType
impl Clone for SocketType
Source§fn clone(&self) -> SocketType
fn clone(&self) -> SocketType
Returns a duplicate 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 SocketType
impl Debug for SocketType
Source§impl Hash for SocketType
impl Hash for SocketType
Source§impl Ord for SocketType
impl Ord for SocketType
Source§fn cmp(&self, other: &SocketType) -> Ordering
fn cmp(&self, other: &SocketType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SocketType
impl PartialEq for SocketType
Source§impl PartialOrd for SocketType
impl PartialOrd for SocketType
impl Copy for SocketType
impl Eq for SocketType
impl StructuralPartialEq for SocketType
Auto Trait Implementations§
impl Freeze for SocketType
impl RefUnwindSafe for SocketType
impl Send for SocketType
impl Sync for SocketType
impl Unpin for SocketType
impl UnwindSafe for SocketType
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