Enum Grant
pub enum Grant {
Granted(u64),
Queued,
RetryAt(u64),
}Expand description
The server’s answer to an acquire.
Variants§
Granted(u64)
This ticket of the asking session holds a permit now: the asked ticket, or another one of the session’s that the queue served first.
Queued
RetryAt(u64)
Ask again at this time (the rate limit refills then).
Trait Implementations§
impl Copy for Grant
impl Eq for Grant
impl StructuralPartialEq for Grant
Auto Trait Implementations§
impl Forget for Grant
impl Freeze for Grant
impl Move for Grant
impl RefUnwindSafe for Grant
impl Send for Grant
impl Sync for Grant
impl Unpin for Grant
impl UnsafeUnpin for Grant
impl UnwindSafe for Grant
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