Struct solana_bloom::bloom::ConcurrentBloomInterval
source · pub struct ConcurrentBloomInterval<T: BloomHashIndex> { /* private fields */ }
Expand description
Wrapper around ConcurrentBloom
and AtomicInterval
so the bloom filter
can be cleared periodically.
Implementations§
source§impl<T: BloomHashIndex> ConcurrentBloomInterval<T>
impl<T: BloomHashIndex> ConcurrentBloomInterval<T>
Methods from Deref<Target = ConcurrentBloom<T>>§
sourcepub fn add(&self, key: &T) -> bool
pub fn add(&self, key: &T) -> bool
Adds an item to the bloom filter and returns true if the item was not in the filter before.
pub fn contains(&self, key: &T) -> bool
pub fn clear(&self)
Trait Implementations§
source§impl<T: BloomHashIndex> Deref for ConcurrentBloomInterval<T>
impl<T: BloomHashIndex> Deref for ConcurrentBloomInterval<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for ConcurrentBloomInterval<T>where
T: RefUnwindSafe,
impl<T> Send for ConcurrentBloomInterval<T>where
T: Send,
impl<T> Sync for ConcurrentBloomInterval<T>where
T: Sync,
impl<T> Unpin for ConcurrentBloomInterval<T>where
T: Unpin,
impl<T> UnwindSafe for ConcurrentBloomInterval<T>where
T: UnwindSafe,
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