pub struct Acquired {
pub allowed: bool,
pub tokens_remaining: f64,
}Expand description
Outcome of one try_acquire. tokens_remaining is the bucket level after
the attempt (post-refill, post-consume on success) and feeds Retry-After.
Fields§
§allowed: bool§tokens_remaining: f64Auto Trait Implementations§
impl Freeze for Acquired
impl RefUnwindSafe for Acquired
impl Send for Acquired
impl Sync for Acquired
impl Unpin for Acquired
impl UnsafeUnpin for Acquired
impl UnwindSafe for Acquired
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