pub trait AuthenticationHandler {
// Required methods
fn authentication(&self) -> Option<AuthenticationData>;
fn set_authentication(&self, authentication: Option<&AuthenticationData>);
}Expand description
Trait to access and share authentication data between filters.
Required Methods§
Sourcefn authentication(&self) -> Option<AuthenticationData>
fn authentication(&self) -> Option<AuthenticationData>
Get the current data regarding authentication.
Sourcefn set_authentication(&self, authentication: Option<&AuthenticationData>)
fn set_authentication(&self, authentication: Option<&AuthenticationData>)
Replace the authentication data.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".