[][src]Struct oxide_auth::frontends::simple::extensions::Extended

pub struct Extended<Inner, Extension> { /* fields omitted */ }

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]

pub fn new(inner: Inner) -> Self[src]

Wrap an endpoint with a standard extension system.

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]

type Error = Inner::Error

The error typed used as the error representation of each flow.

Auto Trait Implementations

impl<Inner, Extension> Unpin for Extended<Inner, Extension> where
    Extension: Unpin,
    Inner: Unpin

impl<Inner, Extension> Send for Extended<Inner, Extension> where
    Extension: Send,
    Inner: Send

impl<Inner, Extension> Sync for Extended<Inner, Extension> where
    Extension: Sync,
    Inner: Sync

impl<Inner, Extension> RefUnwindSafe for Extended<Inner, Extension> where
    Extension: RefUnwindSafe,
    Inner: RefUnwindSafe

impl<Inner, Extension> UnwindSafe for Extended<Inner, Extension> where
    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]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> UnsafeAny for T where
    T: Any

impl<T> IntoCollection<T> for T

impl<T, I> AsResult<T, I> for T where
    I: Input,