pub struct RefreshCoordinator(/* private fields */);Expand description
Instance resource shared by all refresh requests. No global singleton or historical-JTI leak. The finite budget includes running requests and same-JTI waiters; saturation rejects promptly. It complements, never replaces, the product’s authoritative cross-instance database CAS.
Implementations§
Source§impl RefreshCoordinator
impl RefreshCoordinator
Sourcepub fn new(maximum: usize) -> Result<Self>
pub fn new(maximum: usize) -> Result<Self>
Creates a bounded instance resource.
§Errors
Returns InvalidPolicy for zero or a limit beyond Tokio’s semaphore capacity.
Sourcepub fn close(&self)
pub fn close(&self)
Rejects new requests and wakes queued waiters. Already-started store transactions complete.
Sourcepub fn active_requests(&self) -> usize
pub fn active_requests(&self) -> usize
Number of admitted running/queued requests, for resource diagnostics and deterministic tests.
Sourcepub fn tracked_ids(&self) -> usize
pub fn tracked_ids(&self) -> usize
Number of live JTI lock entries. No raw identity is exposed to observation.
Trait Implementations§
Source§impl Clone for RefreshCoordinator
impl Clone for RefreshCoordinator
Source§fn clone(&self) -> RefreshCoordinator
fn clone(&self) -> RefreshCoordinator
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RefreshCoordinator
impl Debug for RefreshCoordinator
Auto Trait Implementations§
impl Freeze for RefreshCoordinator
impl RefUnwindSafe for RefreshCoordinator
impl Send for RefreshCoordinator
impl Sync for RefreshCoordinator
impl Unpin for RefreshCoordinator
impl UnsafeUnpin for RefreshCoordinator
impl UnwindSafe for RefreshCoordinator
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