pub struct HyperLogLogManager { /* private fields */ }Implementations§
Source§impl HyperLogLogManager
impl HyperLogLogManager
Sourcepub async fn pfadd<I, T>(&self, key: &str, elements: I) -> Result<usize>
pub async fn pfadd<I, T>(&self, key: &str, elements: I) -> Result<usize>
Add elements to a HyperLogLog structure (PFADD)
Sourcepub async fn pfcount(&self, key: &str) -> Result<u64>
pub async fn pfcount(&self, key: &str) -> Result<u64>
Estimate cardinality of a HyperLogLog structure (PFCOUNT)
Sourcepub async fn pfmerge<S>(&self, destination: &str, sources: &[S]) -> Result<u64>
pub async fn pfmerge<S>(&self, destination: &str, sources: &[S]) -> Result<u64>
Merge multiple HyperLogLog structures into destination (PFMERGE)
Sourcepub async fn stats(&self) -> Result<HyperLogLogStats>
pub async fn stats(&self) -> Result<HyperLogLogStats>
Retrieve HyperLogLog statistics
Trait Implementations§
Source§impl Clone for HyperLogLogManager
impl Clone for HyperLogLogManager
Source§fn clone(&self) -> HyperLogLogManager
fn clone(&self) -> HyperLogLogManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HyperLogLogManager
impl !RefUnwindSafe for HyperLogLogManager
impl Send for HyperLogLogManager
impl Sync for HyperLogLogManager
impl Unpin for HyperLogLogManager
impl UnsafeUnpin for HyperLogLogManager
impl !UnwindSafe for HyperLogLogManager
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