pub struct Socks4General;
Trait Implementations§
Source§impl AsyncProxy for Socks4General
impl AsyncProxy for Socks4General
type OutputStream = TcpStream
type ErrorKind = ErrorKind
type ConnParams = ConnParams
Source§fn connect<'life0, 'async_trait>(
&'life0 mut self,
params: Self::ConnParams,
) -> Pin<Box<dyn Future<Output = Result<Self::OutputStream, Self::ErrorKind>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 mut self,
params: Self::ConnParams,
) -> Pin<Box<dyn Future<Output = Result<Self::OutputStream, Self::ErrorKind>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Connects to the destanation through proxy
Source§fn write_buffer<'life0, 'life1, 'async_trait>(
&'life0 mut self,
buffer: &'life1 [u8],
stream: Self::OutputStream,
) -> Pin<Box<dyn Future<Output = Result<Self::OutputStream, Self::ErrorKind>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn write_buffer<'life0, 'life1, 'async_trait>(
&'life0 mut self,
buffer: &'life1 [u8],
stream: Self::OutputStream,
) -> Pin<Box<dyn Future<Output = Result<Self::OutputStream, Self::ErrorKind>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Writes the buffer to the destanation
Source§fn read_buffer<'life0, 'life1, 'async_trait>(
&'life0 mut self,
buffer: &'life1 mut [u8],
stream: Self::OutputStream,
) -> Pin<Box<dyn Future<Output = Result<Self::OutputStream, Self::ErrorKind>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn read_buffer<'life0, 'life1, 'async_trait>(
&'life0 mut self,
buffer: &'life1 mut [u8],
stream: Self::OutputStream,
) -> Pin<Box<dyn Future<Output = Result<Self::OutputStream, Self::ErrorKind>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Reads buffer from the destanation
Auto Trait Implementations§
impl Freeze for Socks4General
impl RefUnwindSafe for Socks4General
impl Send for Socks4General
impl Sync for Socks4General
impl Unpin for Socks4General
impl UnwindSafe for Socks4General
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