[−][src]Struct oxide_auth::primitives::authorizer::AuthMap
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,
I: Unpin,
impl<I> Send for AuthMap<I> where
I: Send,
I: Send,
impl<I> Sync for AuthMap<I> where
I: Sync,
I: Sync,
impl<I> RefUnwindSafe for AuthMap<I> where
I: RefUnwindSafe,
I: RefUnwindSafe,
impl<I> UnwindSafe for AuthMap<I> where
I: UnwindSafe,
I: UnwindSafe,
Blanket Implementations
impl<T> OptAuthorizer for T where
T: Authorizer, [src]
T: Authorizer,
fn opt_mut(&mut Self) -> Option<&mut dyn Authorizer>[src]
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,