pub struct BearerCredentialSnapshot { /* private fields */ }Expand description
Redacted snapshot metadata for an in-flight credential generation.
The internal token remains alive until this snapshot and all transport copies are dropped, but no secret bytes are exposed through this API.
Implementations§
Source§impl BearerCredentialSnapshot
impl BearerCredentialSnapshot
Sourcepub fn generation(&self) -> CredentialGeneration
pub fn generation(&self) -> CredentialGeneration
Returns the immutable generation captured by this snapshot.
Sourcepub fn refresh_handoff(&self) -> BearerRefreshHandoff
pub fn refresh_handoff(&self) -> BearerRefreshHandoff
Creates a refresh handoff tied to this exact snapshot generation.
Trait Implementations§
Source§impl Clone for BearerCredentialSnapshot
impl Clone for BearerCredentialSnapshot
Auto Trait Implementations§
impl Freeze for BearerCredentialSnapshot
impl RefUnwindSafe for BearerCredentialSnapshot
impl Send for BearerCredentialSnapshot
impl Sync for BearerCredentialSnapshot
impl Unpin for BearerCredentialSnapshot
impl UnsafeUnpin for BearerCredentialSnapshot
impl UnwindSafe for BearerCredentialSnapshot
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