pub enum RateLimitRejection {
ExceedsCapacity,
InsufficientTokens,
}Expand description
Exhaustive admission rejection reason.
Variants§
ExceedsCapacity
Requested cost exceeds total capacity.
InsufficientTokens
Cost is valid but current tokens are insufficient.
Trait Implementations§
Source§impl Clone for RateLimitRejection
impl Clone for RateLimitRejection
Source§fn clone(&self) -> RateLimitRejection
fn clone(&self) -> RateLimitRejection
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 RateLimitRejection
impl Debug for RateLimitRejection
Source§impl Hash for RateLimitRejection
impl Hash for RateLimitRejection
Source§impl PartialEq for RateLimitRejection
impl PartialEq for RateLimitRejection
impl Copy for RateLimitRejection
impl Eq for RateLimitRejection
impl StructuralPartialEq for RateLimitRejection
Auto Trait Implementations§
impl Freeze for RateLimitRejection
impl RefUnwindSafe for RateLimitRejection
impl Send for RateLimitRejection
impl Sync for RateLimitRejection
impl Unpin for RateLimitRejection
impl UnsafeUnpin for RateLimitRejection
impl UnwindSafe for RateLimitRejection
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