pub struct DriveSession { /* private fields */ }Expand description
A live Drive OAuth2 session: holds the refresh token and the current in-memory access token, refreshing on demand.
Uses tokio::sync::Mutex (not std::sync::Mutex) held across the
refresh network call — mirrors crate::gmail::auth::GmailSession’s
explicit single-flight-refresh design (issue #1465’s “concurrent callers
don’t stampede” requirement): a second concurrent caller blocks on this
mutex and, once unblocked, observes the already-refreshed token instead
of issuing a second POST.
Auto Trait Implementations§
impl !Freeze for DriveSession
impl !RefUnwindSafe for DriveSession
impl !UnwindSafe for DriveSession
impl Send for DriveSession
impl Sync for DriveSession
impl Unpin for DriveSession
impl UnsafeUnpin for DriveSession
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