Skip to main content

ClientAuthentication

Trait ClientAuthentication 

Source
pub trait ClientAuthentication {
    type Evidence;
    type Session: ClientAuthenticationSession<Evidence = Self::Evidence, Error = Self::Error>;
    type Error;

    // Required method
    fn begin<'a>(
        &'a self,
        target: &'a ConnectTarget,
    ) -> ClientAuthenticationFuture<'a, Self::Session, Self::Error>;
}
Expand description

Factory for asynchronous, fallible per-connection authentication sessions.

Required Associated Types§

Source

type Evidence

Typed identity evidence produced after server confirmation.

Source

type Session: ClientAuthenticationSession<Evidence = Self::Evidence, Error = Self::Error>

Per-connection mutable authentication state.

Source

type Error

Application authentication failure.

Required Methods§

Source

fn begin<'a>( &'a self, target: &'a ConnectTarget, ) -> ClientAuthenticationFuture<'a, Self::Session, Self::Error>

Creates fresh authentication state using the selected route.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§