pub trait Authenticator: Send + Sync {
// Required method
fn auth<T>(
&self,
stream: &mut Stream<T>,
methods: Vec<Method>,
) -> impl Future<Output = Result<()>> + Send
where T: AsyncRead + AsyncWrite + Unpin + Send + Sync;
}Expand description
Authentication trait for SOCKS5 server
Required Methods§
fn auth<T>( &self, stream: &mut Stream<T>, methods: Vec<Method>, ) -> impl Future<Output = Result<()>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.