pub struct Auth<S: Scheme + Send + Sync>(/* private fields */);Trait Implementations§
Source§impl<State, S> Middleware<State> for Auth<S>
impl<State, S> Middleware<State> for Auth<S>
Source§fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
request: Request<State>,
next: Next<'life1, State>,
) -> Pin<Box<dyn Future<Output = Result> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn handle<'life0, 'life1, 'async_trait>(
&'life0 self,
request: Request<State>,
next: Next<'life1, State>,
) -> Pin<Box<dyn Future<Output = Result> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Asynchronously handle the request, and return a response.
Source§impl<S: Scheme + Send + Sync> Scheme for Auth<S>
impl<S: Scheme + Send + Sync> Scheme for Auth<S>
fn header_name() -> HeaderName
fn parse<'life0, 'life1, 'async_trait>(
&'life0 self,
header_value: &'life1 HeaderValue,
) -> Pin<Box<dyn Future<Output = Result<AuthValue>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl<S> Freeze for Auth<S>where
S: Freeze,
impl<S> RefUnwindSafe for Auth<S>where
S: RefUnwindSafe,
impl<S> Send for Auth<S>
impl<S> Sync for Auth<S>
impl<S> Unpin for Auth<S>where
S: Unpin,
impl<S> UnwindSafe for Auth<S>where
S: 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