Struct socks5_server::auth::Password
source · [−]pub struct Password { /* private fields */ }Expand description
Username and password as the socks5 handshake method.
Implementations
Trait Implementations
sourceimpl Auth for Password
impl Auth for Password
sourcefn as_handshake_method(&self) -> HandshakeMethod
fn as_handshake_method(&self) -> HandshakeMethod
Returns the code for identifying the authentication method in the socks5 handshake header.
sourcefn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
stream: &'life1 mut TcpStream
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
stream: &'life1 mut TcpStream
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
The asynchronous authentication procedure on the given stream. Read more
Auto Trait Implementations
impl RefUnwindSafe for Password
impl Send for Password
impl Sync for Password
impl Unpin for Password
impl UnwindSafe for Password
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more