pub struct AuthHandler { /* private fields */ }Implementations§
Source§impl AuthHandler
impl AuthHandler
pub fn new(scheme: AuthScheme) -> AuthHandler
pub fn scheme(&self) -> &AuthScheme
pub fn validate(&self) -> Result<(), AuthError>
pub fn inject_headers( &self, headers: &mut HashMap<String, String>, ) -> Result<(), AuthError>
Auto Trait Implementations§
impl Freeze for AuthHandler
impl RefUnwindSafe for AuthHandler
impl Send for AuthHandler
impl Sync for AuthHandler
impl Unpin for AuthHandler
impl UnsafeUnpin for AuthHandler
impl UnwindSafe for AuthHandler
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