pub struct MemoryThrottleStore { /* private fields */ }Expand description
Request throttling primitives. A bounded, process-local atomic throttle store.
Implementations§
Source§impl MemoryThrottleStore
impl MemoryThrottleStore
Sourcepub fn with_capacity(capacity: usize) -> Self
pub fn with_capacity(capacity: usize) -> Self
Creates a store with a configurable active-bucket capacity.
Trait Implementations§
Source§impl Default for MemoryThrottleStore
impl Default for MemoryThrottleStore
Source§impl ThrottleStore for MemoryThrottleStore
impl ThrottleStore for MemoryThrottleStore
Auto Trait Implementations§
impl !Freeze for MemoryThrottleStore
impl RefUnwindSafe for MemoryThrottleStore
impl Send for MemoryThrottleStore
impl Sync for MemoryThrottleStore
impl Unpin for MemoryThrottleStore
impl UnsafeUnpin for MemoryThrottleStore
impl UnwindSafe for MemoryThrottleStore
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