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