pub enum Socks5Command {
Connect = 1,
Bind = 2,
UdpAssociate = 3,
}Available on crate feature
socks5 only.Expand description
SOCKS5 commands as defined in RFC 1928 section 4.
These commands specify the type of proxy operation requested by the client:
CONNECT: Establish a TCP/IP connection to the target.BIND: Request the server to bind to a port for incoming connections.UDP_ASSOCIATE: Establish a UDP relay.
Reference: https://datatracker.ietf.org/doc/html/rfc1928#section-4
Variants§
Trait Implementations§
Source§impl Clone for Socks5Command
impl Clone for Socks5Command
Source§fn clone(&self) -> Socks5Command
fn clone(&self) -> Socks5Command
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 Socks5Command
impl Debug for Socks5Command
Source§impl Hash for Socks5Command
impl Hash for Socks5Command
Source§impl PartialEq for Socks5Command
impl PartialEq for Socks5Command
Source§impl TryFrom<u8> for Socks5Command
impl TryFrom<u8> for Socks5Command
impl Copy for Socks5Command
impl Eq for Socks5Command
impl StructuralPartialEq for Socks5Command
Auto Trait Implementations§
impl Freeze for Socks5Command
impl RefUnwindSafe for Socks5Command
impl Send for Socks5Command
impl Sync for Socks5Command
impl Unpin for Socks5Command
impl UnwindSafe for Socks5Command
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