Struct kube_client::client::middleware::AuthLayer
source · [−]pub struct AuthLayer(_);
Available on crate feature
client
only.Expand description
Layer to set up Authorization
header depending on the config.
Trait Implementations
sourceimpl<S> Layer<S> for AuthLayer
impl<S> Layer<S> for AuthLayer
type Service = Either<<AddAuthorizationLayer as Layer<S>>::Service, <AsyncFilterLayer<RefreshableToken> as Layer<S>>::Service>
type Service = Either<<AddAuthorizationLayer as Layer<S>>::Service, <AsyncFilterLayer<RefreshableToken> as Layer<S>>::Service>
The wrapped service
Auto Trait Implementations
impl !RefUnwindSafe for AuthLayer
impl Send for AuthLayer
impl Sync for AuthLayer
impl Unpin for AuthLayer
impl !UnwindSafe for AuthLayer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more