pub enum RateLimiterConfigError {
InitialExceedsCapacity {
capacity: TokenCount,
initial: u64,
},
}Expand description
Invalid rate-limiter definition.
Variants§
InitialExceedsCapacity
Initial token count exceeds capacity.
Trait Implementations§
Source§impl Clone for RateLimiterConfigError
impl Clone for RateLimiterConfigError
Source§fn clone(&self) -> RateLimiterConfigError
fn clone(&self) -> RateLimiterConfigError
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 RateLimiterConfigError
impl Debug for RateLimiterConfigError
Source§impl Display for RateLimiterConfigError
impl Display for RateLimiterConfigError
Source§impl Error for RateLimiterConfigError
impl Error for RateLimiterConfigError
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 RateLimiterConfigError
impl PartialEq for RateLimiterConfigError
impl Copy for RateLimiterConfigError
impl Eq for RateLimiterConfigError
impl StructuralPartialEq for RateLimiterConfigError
Auto Trait Implementations§
impl Freeze for RateLimiterConfigError
impl RefUnwindSafe for RateLimiterConfigError
impl Send for RateLimiterConfigError
impl Sync for RateLimiterConfigError
impl Unpin for RateLimiterConfigError
impl UnsafeUnpin for RateLimiterConfigError
impl UnwindSafe for RateLimiterConfigError
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