pub struct Builder { /* private fields */ }Available on crate feature
dashmap only.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 Freeze for Builder
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