pub struct AuthInterceptor<T: TokenProvider> { /* private fields */ }Expand description
Interceptor for adding authentication headers to gRPC requests. This is constructed with a callable that returns authentication tokens.
This callable is responsible for ensuring that the returned tokens are valid at the given time, i.e. it should take care of refreshing and so on.
Implementations§
Source§impl<T: TokenProvider> AuthInterceptor<T>
impl<T: TokenProvider> AuthInterceptor<T>
Trait Implementations§
Source§impl<T: TokenProvider> Interceptor for AuthInterceptor<T>
impl<T: TokenProvider> Interceptor for AuthInterceptor<T>
Auto Trait Implementations§
impl<T> Freeze for AuthInterceptor<T>where
T: Freeze,
impl<T> RefUnwindSafe for AuthInterceptor<T>where
T: RefUnwindSafe,
impl<T> Send for AuthInterceptor<T>where
T: Send,
impl<T> Sync for AuthInterceptor<T>where
T: Sync,
impl<T> Unpin for AuthInterceptor<T>where
T: Unpin,
impl<T> UnwindSafe for AuthInterceptor<T>where
T: 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request