pub struct BasicAuthHandler<Inner> { /* private fields */ }Expand description
Handler implementation that wraps another handler with Basic authentication.
This handler implements the actual Basic auth behavior for the BasicAuthLayer.
It adds the Authorization header to requests before passing them to the inner handler.
This is an internal implementation detail and should not be used directly.
Trait Implementations§
Source§impl<Inner: Handler> Handler for BasicAuthHandler<Inner>
impl<Inner: Handler> Handler for BasicAuthHandler<Inner>
fn handle( &self, req: Request<RequestBody>, ) -> Result<Response<ResponseBody>, ApiError>
Auto Trait Implementations§
impl<Inner> Freeze for BasicAuthHandler<Inner>where
Inner: Freeze,
impl<Inner> RefUnwindSafe for BasicAuthHandler<Inner>where
Inner: RefUnwindSafe,
impl<Inner> Send for BasicAuthHandler<Inner>where
Inner: Send,
impl<Inner> Sync for BasicAuthHandler<Inner>where
Inner: Sync,
impl<Inner> Unpin for BasicAuthHandler<Inner>where
Inner: Unpin,
impl<Inner> UnsafeUnpin for BasicAuthHandler<Inner>where
Inner: UnsafeUnpin,
impl<Inner> UnwindSafe for BasicAuthHandler<Inner>where
Inner: UnwindSafe,
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