[][src]Struct oxide_auth::primitives::registrar::ClientMap

pub struct ClientMap { /* fields omitted */ }

A very simple, in-memory hash map of client ids to Client entries.

Methods

impl ClientMap[src]

pub fn new() -> ClientMap[src]

Create an empty map without any clients in it.

pub fn register_client(&mut self, client: Client)[src]

Insert or update the client record.

pub fn set_password_policy<P: PasswordPolicy + 'static>(
    &mut self,
    new_policy: P
)
[src]

Change how passwords are encoded while stored.

Trait Implementations

impl Registrar for ClientMap[src]

fn negotiate(
    &self,
    bound: BoundClient,
    _scope: Option<Scope>
) -> Result<PreGrant, RegistrarError>
[src]

Always overrides the scope with a default scope.

impl Extend<Client> for ClientMap[src]

impl Default for ClientMap[src]

impl FromIterator<Client> for ClientMap[src]

Auto Trait Implementations

Blanket Implementations

impl<T> OptRegistrar for T where
    T: Registrar
[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,