Enum dbs_utils::rate_limiter::TokenType
source · [−]pub enum TokenType {
Bytes,
Ops,
}Expand description
Enum that describes the type of token used.
Variants
Bytes
Token type used for bandwidth limiting.
Ops
Token type used for operations/second limiting.
Auto Trait Implementations
impl RefUnwindSafe for TokenType
impl Send for TokenType
impl Sync for TokenType
impl Unpin for TokenType
impl UnwindSafe for TokenType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more