pub struct Socks5Handler { /* private fields */ }
Expand description
Represents a SOCKS5 handler for processing client requests.
Implementations§
Source§impl Socks5Handler
impl Socks5Handler
Trait Implementations§
Source§impl Clone for Socks5Handler
impl Clone for Socks5Handler
Source§fn clone(&self) -> Socks5Handler
fn clone(&self) -> Socks5Handler
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 moreSource§impl Default for Socks5Handler
impl Default for Socks5Handler
Source§impl SocksHandler for Socks5Handler
impl SocksHandler for Socks5Handler
Source§fn accept_request<'life0, 'life1, 'async_trait>(
&'life0 self,
source: &'life1 mut TcpStream,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn accept_request<'life0, 'life1, 'async_trait>(
&'life0 self,
source: &'life1 mut TcpStream,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§fn refuse_request<'life0, 'life1, 'async_trait>(
&'life0 self,
source: &'life1 mut TcpStream,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn refuse_request<'life0, 'life1, 'async_trait>(
&'life0 self,
source: &'life1 mut TcpStream,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for Socks5Handler
impl RefUnwindSafe for Socks5Handler
impl Send for Socks5Handler
impl Sync for Socks5Handler
impl Unpin for Socks5Handler
impl UnwindSafe for Socks5Handler
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