pub struct Socks4NoIdent;Trait Implementations§
Source§impl AsyncProxy for Socks4NoIdent
impl AsyncProxy for Socks4NoIdent
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 Socks4NoIdent
impl RefUnwindSafe for Socks4NoIdent
impl Send for Socks4NoIdent
impl Sync for Socks4NoIdent
impl Unpin for Socks4NoIdent
impl UnwindSafe for Socks4NoIdent
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