pub enum VerboseRateLimitError {
InsufficientCapacity {
acquiring: Uint,
available: Uint,
retry_after_ticks: Uint,
},
BeyondCapacity {
acquiring: Uint,
capacity: Uint,
},
ExpiredTick {
min_acceptable_tick: Uint,
},
ContentionFailure,
}Expand description
Error type for verbose rate limiting. Contains diagnostic information.
Variants§
InsufficientCapacity
Not enough tokens available.
BeyondCapacity
Request permanently exceeds the configured capacity.
ExpiredTick
Provided tick is too old.
ContentionFailure
Failed due to lock contention.
Trait Implementations§
Source§impl Clone for VerboseRateLimitError
impl Clone for VerboseRateLimitError
Source§fn clone(&self) -> VerboseRateLimitError
fn clone(&self) -> VerboseRateLimitError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VerboseRateLimitError
impl Debug for VerboseRateLimitError
Source§impl Display for VerboseRateLimitError
impl Display for VerboseRateLimitError
Source§impl Error for VerboseRateLimitError
impl Error for VerboseRateLimitError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for VerboseRateLimitError
impl PartialEq for VerboseRateLimitError
impl Eq for VerboseRateLimitError
impl StructuralPartialEq for VerboseRateLimitError
Auto Trait Implementations§
impl Freeze for VerboseRateLimitError
impl RefUnwindSafe for VerboseRateLimitError
impl Send for VerboseRateLimitError
impl Sync for VerboseRateLimitError
impl Unpin for VerboseRateLimitError
impl UnwindSafe for VerboseRateLimitError
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