pub struct ChunkRateLimiter { /* private fields */ }Expand description
Token bucket per authenticated DID for chunk requests.
In-process and deliberately simple: the quantity it protects (disk reads, hashing, bitmap writes on this VTA) is per-process too.
Implementations§
Auto Trait Implementations§
impl !Freeze for ChunkRateLimiter
impl RefUnwindSafe for ChunkRateLimiter
impl Send for ChunkRateLimiter
impl Sync for ChunkRateLimiter
impl Unpin for ChunkRateLimiter
impl UnsafeUnpin for ChunkRateLimiter
impl UnwindSafe for ChunkRateLimiter
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