pub struct AuthMap<I: TagGrant = Box<dyn TagGrant + Send + Sync + 'static>> { /* private fields */ }Expand description
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.
Implementations§
Trait Implementations§
Source§impl<I: TagGrant> Authorizer for AuthMap<I>
impl<I: TagGrant> Authorizer for AuthMap<I>
Create a code which allows retrieval of a bearer token at a later time.
Auto Trait Implementations§
impl<I> Freeze for AuthMap<I>where
I: Freeze,
impl<I> RefUnwindSafe for AuthMap<I>where
I: RefUnwindSafe,
impl<I> Send for AuthMap<I>where
I: Send,
impl<I> Sync for AuthMap<I>where
I: Sync,
impl<I> Unpin for AuthMap<I>where
I: Unpin,
impl<I> UnwindSafe for AuthMap<I>where
I: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> OptAuthorizer for Twhere
T: Authorizer,
impl<T> OptAuthorizer for Twhere
T: Authorizer,
Source§fn opt_mut(&mut self) -> Option<&mut dyn Authorizer>
fn opt_mut(&mut self) -> Option<&mut dyn Authorizer>
Reference this mutably as an
Authorizer or Option::None.