pub struct Authentication { /* private fields */ }Expand description
Default implementation of the AuthenticationHandler trait.
Implementations§
Source§impl Authentication
impl Authentication
pub fn new<K: PropertyAccessor + 'static>(property_accessor: K) -> Self
Trait Implementations§
Source§impl AuthenticationHandler for Authentication
impl AuthenticationHandler for Authentication
Source§fn authentication(&self) -> Option<AuthenticationData>
fn authentication(&self) -> Option<AuthenticationData>
Get the current data regarding authentication.
Source§fn set_authentication(&self, authentication: Option<&AuthenticationData>)
fn set_authentication(&self, authentication: Option<&AuthenticationData>)
Replace the authentication data.
Source§impl FromContext<FilterContext> for Authentication
impl FromContext<FilterContext> for Authentication
type Error = Infallible
fn from_context(context: &FilterContext) -> Result<Self, Self::Error>
fn from_context_always(context: &C) -> Selfwhere
Self: FromContext<C, E, Error = Infallible>,
Source§impl FromContext<RequestContext> for Authentication
impl FromContext<RequestContext> for Authentication
type Error = Infallible
fn from_context(context: &RequestContext) -> Result<Self, Self::Error>
fn from_context_always(context: &C) -> Selfwhere
Self: FromContext<C, E, Error = Infallible>,
Source§impl<C> FromContext<ResponseContext<C>> for Authentication
impl<C> FromContext<ResponseContext<C>> for Authentication
type Error = Infallible
fn from_context(context: &ResponseContext<C>) -> Result<Self, Self::Error>
fn from_context_always(context: &C) -> Selfwhere
Self: FromContext<C, E, Error = Infallible>,
Auto Trait Implementations§
impl Freeze for Authentication
impl !RefUnwindSafe for Authentication
impl !Send for Authentication
impl !Sync for Authentication
impl Unpin for Authentication
impl UnsafeUnpin for Authentication
impl !UnwindSafe for Authentication
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more