pub enum RateLimitReason {
QueueFull {
max_queue: usize,
},
Timeout {
waited: Duration,
},
}Expand description
Why a queued call could not be admitted.
Variants§
QueueFull
The bounded waiting queue was already full.
Timeout
No permit became available within the configured wait timeout.
Trait Implementations§
Source§impl Clone for RateLimitReason
impl Clone for RateLimitReason
Source§fn clone(&self) -> RateLimitReason
fn clone(&self) -> RateLimitReason
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 moreimpl Copy for RateLimitReason
Source§impl Debug for RateLimitReason
impl Debug for RateLimitReason
Source§impl Display for RateLimitReason
impl Display for RateLimitReason
impl Eq for RateLimitReason
Source§impl Error for RateLimitReason
impl Error for RateLimitReason
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 RateLimitReason
impl PartialEq for RateLimitReason
impl StructuralPartialEq for RateLimitReason
Auto Trait Implementations§
impl Freeze for RateLimitReason
impl RefUnwindSafe for RateLimitReason
impl Send for RateLimitReason
impl Sync for RateLimitReason
impl Unpin for RateLimitReason
impl UnsafeUnpin for RateLimitReason
impl UnwindSafe for RateLimitReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.