pub struct ClientMap { /* private fields */ }Expand description
A very simple, in-memory hash map of client ids to Client entries.
Implementations§
Source§impl ClientMap
impl ClientMap
Sourcepub fn register_client(&mut self, client: Client)
pub fn register_client(&mut self, client: Client)
Insert or update the client record.
Sourcepub fn set_password_policy<P: PasswordPolicy + 'static>(
&mut self,
new_policy: P,
)
pub fn set_password_policy<P: PasswordPolicy + 'static>( &mut self, new_policy: P, )
Change how passwords are encoded while stored.
Trait Implementations§
Source§impl Extend<Client> for ClientMap
impl Extend<Client> for ClientMap
Source§fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = Client>,
fn extend<I>(&mut self, iter: I)where
I: IntoIterator<Item = Client>,
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<Client> for ClientMap
impl FromIterator<Client> for ClientMap
Source§impl Registrar for ClientMap
impl Registrar for ClientMap
Source§fn negotiate(
&self,
bound: BoundClient<'_>,
_scope: Option<Scope>,
) -> Result<PreGrant, RegistrarError>
fn negotiate( &self, bound: BoundClient<'_>, _scope: Option<Scope>, ) -> Result<PreGrant, RegistrarError>
Always overrides the scope with a default scope.
Source§fn bound_redirect<'a>(
&self,
bound: ClientUrl<'a>,
) -> Result<BoundClient<'a>, RegistrarError>
fn bound_redirect<'a>( &self, bound: ClientUrl<'a>, ) -> Result<BoundClient<'a>, RegistrarError>
Determine the allowed scope and redirection url for the client. The registrar may override
the scope entirely or simply substitute a default scope in case none is given. Redirection
urls should be matched verbatim, not partially.
Auto Trait Implementations§
impl Freeze for ClientMap
impl !RefUnwindSafe for ClientMap
impl Send for ClientMap
impl Sync for ClientMap
impl Unpin for ClientMap
impl !UnwindSafe for ClientMap
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