pub trait Authenticator:
Send
+ Sync
+ 'static {
// Required method
fn authenticate(
&self,
ctx: AuthContext,
) -> BoxFuture<Result<Option<Request<RequestBody>>, WireError>>;
}Expand description
Produces authenticated follow-up requests for authentication challenges.
Required Methods§
fn authenticate( &self, ctx: AuthContext, ) -> BoxFuture<Result<Option<Request<RequestBody>>, WireError>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".