pub struct AuthRegistry { /* private fields */ }Expand description
Runtime-owned set of authenticators, keyed by scheme.
Implementations§
Source§impl AuthRegistry
impl AuthRegistry
Sourcepub fn register(&mut self, auth: Box<dyn Authenticator>)
pub fn register(&mut self, auth: Box<dyn Authenticator>)
Register auth for the scheme it advertises.
Sourcepub fn get(&self, scheme: &AuthScheme) -> Option<&dyn Authenticator>
pub fn get(&self, scheme: &AuthScheme) -> Option<&dyn Authenticator>
Look up the authenticator for scheme, or None if unsupported.
Trait Implementations§
Source§impl Debug for AuthRegistry
impl Debug for AuthRegistry
Auto Trait Implementations§
impl Freeze for AuthRegistry
impl !RefUnwindSafe for AuthRegistry
impl Send for AuthRegistry
impl Sync for AuthRegistry
impl Unpin for AuthRegistry
impl UnsafeUnpin for AuthRegistry
impl !UnwindSafe for AuthRegistry
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