[−][src]Struct oxide_auth::frontends::simple::extensions::AddonList
A simple list of loosly related authorization and access addons.
The owning representation of access extensions can be switched out to Box<_>, Rc<_> or
other types.
Methods
impl AddonList[src]
pub fn new() -> Self[src]
Create an empty extension system.
pub fn push_authorization<A>(&mut self, addon: A) where
A: AuthorizationAddon + Send + Sync + 'static, [src]
A: AuthorizationAddon + Send + Sync + 'static,
Add an addon that only applies to authorization.
pub fn push_access_token<A>(&mut self, addon: A) where
A: AccessTokenAddon + Send + Sync + 'static, [src]
A: AccessTokenAddon + Send + Sync + 'static,
Add an addon that only applies to access_token.
pub fn push_code<A>(&mut self, addon: A) where
A: AuthorizationAddon + AccessTokenAddon + Send + Sync + 'static, [src]
A: AuthorizationAddon + AccessTokenAddon + Send + Sync + 'static,
Add an addon that applies to the whole code grant flow.
The addon gets added both the authorization and access token addons.
Trait Implementations
impl Extension for AddonList[src]
fn extend(
&mut self,
request: &dyn Request,
data: Extensions
) -> Result<Extensions, ()>[src]
&mut self,
request: &dyn Request,
data: Extensions
) -> Result<Extensions, ()>
impl Extension for AddonList[src]
fn extend(&mut self, request: &dyn AuthRequest) -> Result<Extensions, ()>[src]
impl Extension for AddonList[src]
fn authorization(&mut self) -> Option<&mut dyn AuthorizationExtension>[src]
fn access_token(&mut self) -> Option<&mut dyn AccessTokenExtension>[src]
impl Default for AddonList[src]
impl Debug for AddonList[src]
Auto Trait Implementations
impl Unpin for AddonList
impl Send for AddonList
impl Sync for AddonList
impl !RefUnwindSafe for AddonList
impl !UnwindSafe for AddonList
Blanket Implementations
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Erased for T
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> DebugAny for T where
T: Any + Debug,
T: Any + Debug,
impl<T> UnsafeAny for T where
T: Any,
T: Any,
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
A: Array<Item = T>,
fn mapped<U, F, A>(self, f: F) -> SmallVec<A> where
A: Array<Item = U>,
F: FnMut(T) -> U,
A: Array<Item = U>,
F: FnMut(T) -> U,
impl<T, I> AsResult<T, I> for T where
I: Input,
I: Input,