pub trait ClientAuthentication {
type Evidence;
type Session: ClientAuthenticationSession<Evidence = Self::Evidence, Error = Self::Error>;
type Error;
// Required method
async fn begin(
&self,
target: &ConnectTarget,
) -> Result<Self::Session, Self::Error>;
}Expand description
Factory for asynchronous, fallible per-connection authentication sessions.
Authentication futures are not required to be Send.
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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".