pub enum RateLimiterError {
InsufficientTokens {
available: u32,
requested: u32,
},
Timeout,
InvalidConfig,
LayoutMismatch,
IoError(ErrorKind),
}Variants§
Trait Implementations§
Source§impl Clone for RateLimiterError
impl Clone for RateLimiterError
Source§fn clone(&self) -> RateLimiterError
fn clone(&self) -> RateLimiterError
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 RateLimiterError
Source§impl Debug for RateLimiterError
impl Debug for RateLimiterError
impl Eq for RateLimiterError
Source§impl From<Error> for RateLimiterError
impl From<Error> for RateLimiterError
Source§impl PartialEq for RateLimiterError
impl PartialEq for RateLimiterError
impl StructuralPartialEq for RateLimiterError
Auto Trait Implementations§
impl Freeze for RateLimiterError
impl RefUnwindSafe for RateLimiterError
impl Send for RateLimiterError
impl Sync for RateLimiterError
impl Unpin for RateLimiterError
impl UnsafeUnpin for RateLimiterError
impl UnwindSafe for RateLimiterError
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