pub enum Verdict {
Allowed {
remaining: NonZeroU32,
},
Limited {
retry_after: NonZeroU64,
},
}Expand description
Variants§
Allowed
The request is permitted. remaining counts what is left in this
window including this request.
Fields
§
remaining: NonZeroU32Requests still available in the current window.
Limited
The window is spent. retry_after is how long until it resets.
Fields
§
retry_after: NonZeroU64Whole seconds to wait. Never zero.
Trait Implementations§
impl Copy for Verdict
impl Eq for Verdict
impl StructuralPartialEq for Verdict
Auto Trait Implementations§
impl Freeze for Verdict
impl RefUnwindSafe for Verdict
impl Send for Verdict
impl Sync for Verdict
impl Unpin for Verdict
impl UnsafeUnpin for Verdict
impl UnwindSafe for Verdict
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