pub struct AcquireOutcome {
pub allowed: bool,
pub remaining: f64,
pub retry_after: Duration,
}Expand description
Outcome of an atomic acquire against a distributed backend.
Fields§
§allowed: boolWhether the requested cost was granted.
remaining: f64Approximate permits remaining after this operation.
retry_after: DurationIf denied, the estimated wait until the cost could succeed.
Implementations§
Trait Implementations§
Source§impl Clone for AcquireOutcome
impl Clone for AcquireOutcome
impl Copy for AcquireOutcome
Source§impl Debug for AcquireOutcome
impl Debug for AcquireOutcome
Source§impl PartialEq for AcquireOutcome
impl PartialEq for AcquireOutcome
impl StructuralPartialEq for AcquireOutcome
Auto Trait Implementations§
impl Freeze for AcquireOutcome
impl RefUnwindSafe for AcquireOutcome
impl Send for AcquireOutcome
impl Sync for AcquireOutcome
impl Unpin for AcquireOutcome
impl UnsafeUnpin for AcquireOutcome
impl UnwindSafe for AcquireOutcome
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