Authenticator

Trait Authenticator 

Source
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§

Source

fn auth<T>( &self, stream: &mut Stream<T>, methods: Vec<Method>, ) -> impl Future<Output = Result<()>> + Send
where T: AsyncRead + AsyncWrite + Unpin + Send + Sync,

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.

Implementors§