Struct tower_http::auth::AsyncRequireAuthorizationLayer
source · [−]pub struct AsyncRequireAuthorizationLayer<T> { /* private fields */ }
This is supported on crate feature
auth
only.Expand description
Layer that applies AsyncRequireAuthorization
which authorizes all requests using the
Authorization
header.
See the module docs for an example.
Implementations
Authorize requests using a custom scheme.
Trait Implementations
impl<S, T> Layer<S> for AsyncRequireAuthorizationLayer<T> where
T: Clone + AsyncAuthorizeRequest,
impl<S, T> Layer<S> for AsyncRequireAuthorizationLayer<T> where
T: Clone + AsyncAuthorizeRequest,
Auto Trait Implementations
impl<T> RefUnwindSafe for AsyncRequireAuthorizationLayer<T> where
T: RefUnwindSafe,
impl<T> Send for AsyncRequireAuthorizationLayer<T> where
T: Send,
impl<T> Sync for AsyncRequireAuthorizationLayer<T> where
T: Sync,
impl<T> Unpin for AsyncRequireAuthorizationLayer<T> where
T: Unpin,
impl<T> UnwindSafe for AsyncRequireAuthorizationLayer<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
This is supported on crate feature
follow-redirect
only.Create a new Policy
that returns Action::Follow
only if self
and other
return
Action::Follow
. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more