Struct oxide_auth::frontends::simple::endpoint::FnSolicitor
source · pub struct FnSolicitor<F>(pub F);
Expand description
A simple wrapper for functions and lambdas to be used as solicitors.
Tuple Fields§
§0: F
Trait Implementations§
source§impl<W, F> OwnerSolicitor<W> for FnSolicitor<F>
impl<W, F> OwnerSolicitor<W> for FnSolicitor<F>
source§fn check_consent(
&mut self,
request: &mut W,
solicitation: Solicitation<'_>
) -> OwnerConsent<W::Response>
fn check_consent( &mut self, request: &mut W, solicitation: Solicitation<'_> ) -> OwnerConsent<W::Response>
Ensure that a user (resource owner) is currently authenticated (for example via a session
cookie) and determine if he has agreed to the presented grants.
Auto Trait Implementations§
impl<F> Freeze for FnSolicitor<F>where
F: Freeze,
impl<F> RefUnwindSafe for FnSolicitor<F>where
F: RefUnwindSafe,
impl<F> Send for FnSolicitor<F>where
F: Send,
impl<F> Sync for FnSolicitor<F>where
F: Sync,
impl<F> Unpin for FnSolicitor<F>where
F: Unpin,
impl<F> UnwindSafe for FnSolicitor<F>where
F: UnwindSafe,
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