[][src]Struct oxide_auth::code_grant::accesstoken::PrimitiveError

pub struct PrimitiveError {
    pub grant: Option<Grant>,
    pub extensions: Option<Extensions>,
}

The endpoint should have enough control over its primitives to find out what has gone wrong, e.g. they may externall supply error information.

In this case, all previous results returned by the primitives are included in the return value. Through this mechanism, one can accomodate async handlers by implementing a sync-based result cache that is filled with these partial values. In case only parts of the outstanding futures, invoked during internal calls, are ready the cache can be refilled through the error eliminating polls to already sucessful futures.

Note that token is not included in this list, since the handler can never fail after supplying a token to the backend.

Fields

grant: Option<Grant>

The already extracted grant.

You may reuse this, or more precisely you must to fulfill this exact request in case of an error recovery attempt.

extensions: Option<Extensions>

The extensions that were computed.

Auto Trait Implementations

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,