Struct actix_extensible_rate_limit::backend::memory::Builder
source · pub struct Builder { /* private fields */ }
Implementations§
source§impl Builder
impl Builder
sourcepub fn with_gc_interval(self, interval: Option<Duration>) -> Self
pub fn with_gc_interval(self, interval: Option<Duration>) -> Self
Override the default garbage collector interval.
Set to None to disable garbage collection.
The garbage collector periodically scans the internal map, removing expired buckets.
pub fn build(self) -> InMemoryBackend
Auto Trait Implementations§
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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