Enum Acquire
pub enum Acquire {
Granted,
Wait {
retry_at_ms: Option<u64>,
},
}Expand description
The answer to an acquire.
Variants§
Granted
Wait
Queued. The waker is woken when it may be granted; if retry_at_ms
is set, ask again at that time (the rate limit refills then).
Trait Implementations§
impl Copy for Acquire
impl Eq for Acquire
impl StructuralPartialEq for Acquire
Auto Trait Implementations§
impl Freeze for Acquire
impl RefUnwindSafe for Acquire
impl Send for Acquire
impl Sync for Acquire
impl Unpin for Acquire
impl UnsafeUnpin for Acquire
impl UnwindSafe for Acquire
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