pub struct FileTokenProvider { /* private fields */ }Expand description
Reads a bearer token from a file (e.g., K8s projected service account token).
Implementations§
Trait Implementations§
Source§impl AuthProvider for FileTokenProvider
impl AuthProvider for FileTokenProvider
Source§fn provide<'life0, 'life1, 'async_trait>(
&'life0 self,
_request: &'life1 AuthRequest,
) -> Pin<Box<dyn Future<Output = Result<AuthToken, AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn provide<'life0, 'life1, 'async_trait>(
&'life0 self,
_request: &'life1 AuthRequest,
) -> Pin<Box<dyn Future<Output = Result<AuthToken, AuthError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Provide an authentication token for the given request context.
Auto Trait Implementations§
impl Freeze for FileTokenProvider
impl RefUnwindSafe for FileTokenProvider
impl Send for FileTokenProvider
impl Sync for FileTokenProvider
impl Unpin for FileTokenProvider
impl UnsafeUnpin for FileTokenProvider
impl UnwindSafe for FileTokenProvider
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