pub trait SocksHandler {
// Required methods
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 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 setup<'life0, 'life1, 'async_trait>(
&'life0 self,
source: &'life1 mut TcpStream,
) -> Pin<Box<dyn Future<Output = Result<TcpStream>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
An asynchronous trait defining the core functionalities required for handling SOCKS requests.