Struct GcloudTokenProvider
pub struct GcloudTokenProvider { /* private fields */ }Expand description
Token provider that shells out to gcloud auth print-access-token,
caching the result with a configurable TTL.
Implementations§
§impl GcloudTokenProvider
impl GcloudTokenProvider
pub fn new(ttl: Duration) -> GcloudTokenProvider
pub fn new(ttl: Duration) -> GcloudTokenProvider
Create a new provider with the given cache TTL (recommended: 45 minutes).
Trait Implementations§
§impl TokenProvider for GcloudTokenProvider
impl TokenProvider for GcloudTokenProvider
Auto Trait Implementations§
impl !Freeze for GcloudTokenProvider
impl !RefUnwindSafe for GcloudTokenProvider
impl Send for GcloudTokenProvider
impl Sync for GcloudTokenProvider
impl Unpin for GcloudTokenProvider
impl UnwindSafe for GcloudTokenProvider
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