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§
Sourcetype Session: ClientAuthenticationSession<Evidence = Self::Evidence, Error = Self::Error>
type Session: ClientAuthenticationSession<Evidence = Self::Evidence, Error = Self::Error>
Per-connection mutable authentication state.
Required Methods§
Sourcefn begin<'a>(
&'a self,
target: &'a ConnectTarget,
) -> ClientAuthenticationFuture<'a, Self::Session, Self::Error>
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".