pub struct Socks6Request {
pub command: Socks6Command,
pub destination: Address,
pub initial_data_length: u16,
pub options: Vec<SocksOption>,
pub metadata: HashMap<u16, String>,
}
Expand description
Represents a SOCKS6 request.
Fields§
§command: Socks6Command
§destination: Address
§initial_data_length: u16
§options: Vec<SocksOption>
§metadata: HashMap<u16, String>
Implementations§
Source§impl Socks6Request
impl Socks6Request
Sourcepub fn new(
command: u8,
destination: Address,
initial_data_length: u16,
options: Vec<SocksOption>,
metadata: Option<HashMap<u16, String>>,
) -> Self
pub fn new( command: u8, destination: Address, initial_data_length: u16, options: Vec<SocksOption>, metadata: Option<HashMap<u16, String>>, ) -> Self
Constructor for Socks6Request
Sourcepub fn chain(&self, static_links: &[ProxyAddress]) -> Result<Option<SocksChain>>
pub fn chain(&self, static_links: &[ProxyAddress]) -> Result<Option<SocksChain>>
Chain function to link multiple proxies.
Sourcepub fn into_socks_bytes(self) -> Vec<u8>
pub fn into_socks_bytes(self) -> Vec<u8>
Convert the request into a byte sequence for SOCKS6.
Trait Implementations§
Source§impl Clone for Socks6Request
impl Clone for Socks6Request
Source§fn clone(&self) -> Socks6Request
fn clone(&self) -> Socks6Request
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 moreAuto Trait Implementations§
impl Freeze for Socks6Request
impl RefUnwindSafe for Socks6Request
impl Send for Socks6Request
impl Sync for Socks6Request
impl Unpin for Socks6Request
impl UnwindSafe for Socks6Request
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