pub trait ClientAuthenticationSession {
type Evidence;
type Error;
// Required methods
async fn respond(
&mut self,
challenge: ClientAuthenticationChallenge,
) -> Result<ClientAuthenticationResponse, Self::Error>;
async fn authenticated(self) -> Result<Self::Evidence, Self::Error>;
}Expand description
Mutable authentication policy state owned by one connection attempt.
Authentication futures are not required to be Send.
Required Associated Types§
Required Methods§
Sourceasync fn respond(
&mut self,
challenge: ClientAuthenticationChallenge,
) -> Result<ClientAuthenticationResponse, Self::Error>
async fn respond( &mut self, challenge: ClientAuthenticationChallenge, ) -> Result<ClientAuthenticationResponse, Self::Error>
Answers one server authentication challenge.
Sourceasync fn authenticated(self) -> Result<Self::Evidence, Self::Error>
async fn authenticated(self) -> Result<Self::Evidence, Self::Error>
Produces identity evidence after AuthenticationOk was received.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".