pub enum SimpleRateLimitError {
InsufficientCapacity,
BeyondCapacity,
ExpiredTick,
ContentionFailure,
}Expand description
Error type for fast-path rate limiting. No extra diagnostic information.
Variants§
Trait Implementations§
Source§impl Clone for SimpleRateLimitError
impl Clone for SimpleRateLimitError
Source§fn clone(&self) -> SimpleRateLimitError
fn clone(&self) -> SimpleRateLimitError
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 SimpleRateLimitError
impl Debug for SimpleRateLimitError
Source§impl Display for SimpleRateLimitError
impl Display for SimpleRateLimitError
Source§impl Error for SimpleRateLimitError
impl Error for SimpleRateLimitError
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 SimpleRateLimitError
impl PartialEq for SimpleRateLimitError
impl Eq for SimpleRateLimitError
impl StructuralPartialEq for SimpleRateLimitError
Auto Trait Implementations§
impl Freeze for SimpleRateLimitError
impl RefUnwindSafe for SimpleRateLimitError
impl Send for SimpleRateLimitError
impl Sync for SimpleRateLimitError
impl Unpin for SimpleRateLimitError
impl UnwindSafe for SimpleRateLimitError
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