[][src]Struct oxide_auth::primitives::authorizer::AuthMap

pub struct AuthMap<I: TagGrant = Box<dyn TagGrant + Send + Sync + 'static>> { /* fields omitted */ }

An in-memory hash map.

This authorizer saves a mapping of generated strings to their associated grants. The generator is itself trait based and can be chosen during construction. It is assumed to not be possible for two different grants to generate the same token in the issuer.

Methods

impl<I: TagGrant> AuthMap<I>[src]

pub fn new(tagger: I) -> Self[src]

Create an authorizer generating tokens with the tagger.

The token map is initially empty and is filled by methods provided in its Authorizer implementation.

Trait Implementations

impl<I: TagGrant> Authorizer for AuthMap<I>[src]

Auto Trait Implementations

impl<I> Unpin for AuthMap<I> where
    I: Unpin

impl<I> Send for AuthMap<I> where
    I: Send

impl<I> Sync for AuthMap<I> where
    I: Sync

impl<I> RefUnwindSafe for AuthMap<I> where
    I: RefUnwindSafe

impl<I> UnwindSafe for AuthMap<I> where
    I: UnwindSafe

Blanket Implementations

impl<T> OptAuthorizer for T where
    T: Authorizer
[src]

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,