pub enum RateLimitConfigError {
EmptyLimiter,
ZeroSize {
bucket: &'static str,
},
ZeroRefillTime {
bucket: &'static str,
},
}Expand description
Invalid rate limiter configuration.
Variants§
EmptyLimiter
The limiter has neither a bandwidth nor an ops bucket.
ZeroSize
A bucket capacity is zero.
ZeroRefillTime
A bucket refill interval is zero.
Trait Implementations§
Source§impl Clone for RateLimitConfigError
impl Clone for RateLimitConfigError
Source§fn clone(&self) -> RateLimitConfigError
fn clone(&self) -> RateLimitConfigError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RateLimitConfigError
impl Debug for RateLimitConfigError
Source§impl Display for RateLimitConfigError
impl Display for RateLimitConfigError
impl Eq for RateLimitConfigError
Source§impl Error for RateLimitConfigError
impl Error for RateLimitConfigError
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 RateLimitConfigError
impl PartialEq for RateLimitConfigError
impl StructuralPartialEq for RateLimitConfigError
Auto Trait Implementations§
impl Freeze for RateLimitConfigError
impl RefUnwindSafe for RateLimitConfigError
impl Send for RateLimitConfigError
impl Sync for RateLimitConfigError
impl Unpin for RateLimitConfigError
impl UnsafeUnpin for RateLimitConfigError
impl UnwindSafe for RateLimitConfigError
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