pub struct AuthenticationManager { /* private fields */ }
Expand description
Authentication manager
Implementations§
Source§impl AuthenticationManager
impl AuthenticationManager
pub async fn new(config: AuthConfig) -> Result<AuthenticationManager, AuthError>
pub async fn start_background_tasks(&self) -> Result<(), AuthError>
pub async fn stop_background_tasks(&self) -> Result<(), AuthError>
pub async fn health_check(&self) -> Result<(), AuthError>
pub async fn process_request( &self, request: Request, _context: &RequestContext, ) -> Result<Request, AuthError>
pub async fn process_response( &self, response: Response, _context: &RequestContext, ) -> Result<Response, AuthError>
Auto Trait Implementations§
impl Freeze for AuthenticationManager
impl !RefUnwindSafe for AuthenticationManager
impl Send for AuthenticationManager
impl Sync for AuthenticationManager
impl Unpin for AuthenticationManager
impl !UnwindSafe for AuthenticationManager
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