pub struct LiveRefresh(/* private fields */);Expand description
A refresh record that RefreshRotator::check found spendable at the
time of the check: known, not revoked, not consumed, not expired.
Opaque on purpose: the only way to build one is a successful check, so the
only way to reach RefreshRotator::commit is through it.
Implementations§
Source§impl LiveRefresh
impl LiveRefresh
Sourcepub fn record(&self) -> &RefreshTokenRecord
pub fn record(&self) -> &RefreshTokenRecord
The checked record — read user_id / device_id off it to decide
whether to commit.
Trait Implementations§
Source§impl Clone for LiveRefresh
impl Clone for LiveRefresh
Auto Trait Implementations§
impl Freeze for LiveRefresh
impl RefUnwindSafe for LiveRefresh
impl Send for LiveRefresh
impl Sync for LiveRefresh
impl Unpin for LiveRefresh
impl UnsafeUnpin for LiveRefresh
impl UnwindSafe for LiveRefresh
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