[−][src]Struct oxide_auth::frontends::simple::extensions::Extended
An inner endpoint with simple extensions.
If the inner endpoint had any extension, it will simply never be provided to any flow and
overwritten. Therefore, this is mainly useful for other endpoints that did not implement
extensions by themselves such as frontends::simple::endpoint::Generic.
Methods
impl<Inner> Extended<Inner, AddonList>[src]
impl<Inner, E> Extended<Inner, E>[src]
pub fn extend_with(inner: Inner, extension: E) -> Self[src]
Wrap an inner endpoint with a preconstructed extension instance.
pub fn extension(&self) -> &E[src]
A reference to the extension.
pub fn extension_mut(&mut self) -> &mut E[src]
A mutable reference to the extension.
Trait Implementations
impl<Request, Inner, Ext> Endpoint<Request> for Extended<Inner, Ext> where
Request: WebRequest,
Inner: Endpoint<Request>,
Ext: Extension, [src]
Request: WebRequest,
Inner: Endpoint<Request>,
Ext: Extension,
type Error = Inner::Error
The error typed used as the error representation of each flow.
fn registrar(&self) -> Option<&dyn Registrar>[src]
fn authorizer_mut(&mut self) -> Option<&mut dyn Authorizer>[src]
fn issuer_mut(&mut self) -> Option<&mut dyn Issuer>[src]
fn owner_solicitor(&mut self) -> Option<&mut dyn OwnerSolicitor<Request>>[src]
fn scopes(&mut self) -> Option<&mut dyn Scopes<Request>>[src]
fn response(
&mut self,
request: &mut Request,
kind: Template
) -> Result<Request::Response, Self::Error>[src]
&mut self,
request: &mut Request,
kind: Template
) -> Result<Request::Response, Self::Error>
fn error(&mut self, err: OAuthError) -> Self::Error[src]
fn web_error(&mut self, err: Request::Error) -> Self::Error[src]
fn extension(&mut self) -> Option<&mut dyn Extension>[src]
Auto Trait Implementations
impl<Inner, Extension> Unpin for Extended<Inner, Extension> where
Extension: Unpin,
Inner: Unpin,
Extension: Unpin,
Inner: Unpin,
impl<Inner, Extension> Send for Extended<Inner, Extension> where
Extension: Send,
Inner: Send,
Extension: Send,
Inner: Send,
impl<Inner, Extension> Sync for Extended<Inner, Extension> where
Extension: Sync,
Inner: Sync,
Extension: Sync,
Inner: Sync,
impl<Inner, Extension> RefUnwindSafe for Extended<Inner, Extension> where
Extension: RefUnwindSafe,
Inner: RefUnwindSafe,
Extension: RefUnwindSafe,
Inner: RefUnwindSafe,
impl<Inner, Extension> UnwindSafe for Extended<Inner, Extension> where
Extension: UnwindSafe,
Inner: UnwindSafe,
Extension: UnwindSafe,
Inner: UnwindSafe,
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> 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,