pub enum RateBucket {
ReadLight,
ReadHeavy,
WriteLight,
WriteHeavy,
AdminOnly,
}Expand description
Named rate-limit bucket.
Variants§
ReadLight
Cheap reads (get_blockchain_state, healthz).
ReadHeavy
Expensive reads (get_block, get_coin_records_by_hint).
WriteLight
Cheap writes (submit_partial_checkpoint_signature).
WriteHeavy
Expensive writes (push_tx).
AdminOnly
Admin-only methods (stop_node, ban_peer).
Trait Implementations§
Source§impl Clone for RateBucket
impl Clone for RateBucket
Source§fn clone(&self) -> RateBucket
fn clone(&self) -> RateBucket
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 RateBucket
impl Debug for RateBucket
Source§impl Hash for RateBucket
impl Hash for RateBucket
Source§impl PartialEq for RateBucket
impl PartialEq for RateBucket
impl Copy for RateBucket
impl Eq for RateBucket
impl StructuralPartialEq for RateBucket
Auto Trait Implementations§
impl Freeze for RateBucket
impl RefUnwindSafe for RateBucket
impl Send for RateBucket
impl Sync for RateBucket
impl Unpin for RateBucket
impl UnsafeUnpin for RateBucket
impl UnwindSafe for RateBucket
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.