pub struct PfAdd { /* private fields */ }Expand description
PFADD key element [element …]
Adds the specified elements to the HyperLogLog at key.
Returns true if the internal representation was altered (i.e., the
estimated cardinality changed), false otherwise.
Implementations§
Source§impl PfAdd
impl PfAdd
Sourcepub fn new(key: impl Into<CommandArg>, element: impl Into<CommandArg>) -> PfAdd
pub fn new(key: impl Into<CommandArg>, element: impl Into<CommandArg>) -> PfAdd
Create a new PfAdd command.
Sourcepub fn elements(
key: impl Into<CommandArg>,
elements: impl IntoIterator<Item = impl Into<CommandArg>>,
) -> PfAdd
pub fn elements( key: impl Into<CommandArg>, elements: impl IntoIterator<Item = impl Into<CommandArg>>, ) -> PfAdd
Create the PfAdd command for the supplied elements.
Trait Implementations§
Source§impl Command for PfAdd
impl Command for PfAdd
Source§fn parse_response(
&self,
frame: Frame,
) -> Result<<PfAdd as Command>::Response, RedisError>
fn parse_response( &self, frame: Frame, ) -> Result<<PfAdd as Command>::Response, RedisError>
Parse a RESP response frame into the typed response. Read more
Source§fn idempotent(&self) -> bool
fn idempotent(&self) -> bool
Whether this command is safe to retry on connection errors. Read more
Source§fn is_blocking(&self) -> bool
fn is_blocking(&self) -> bool
Whether this command blocks the connection until data is available or a
timeout elapses –
BLPOP, BRPOP, BLMOVE, BZPOPMIN/BZPOPMAX, and
XREAD/XREADGROUP with BLOCK. Read moreAuto Trait Implementations§
impl !Freeze for PfAdd
impl RefUnwindSafe for PfAdd
impl Send for PfAdd
impl Sync for PfAdd
impl Unpin for PfAdd
impl UnsafeUnpin for PfAdd
impl UnwindSafe for PfAdd
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<C> RequestDeadline for Cwhere
C: Command,
impl<C> RequestDeadline for Cwhere
C: Command,
Source§fn request_deadline(&self) -> Option<Instant>
fn request_deadline(&self) -> Option<Instant>
Return the request’s absolute deadline, if it carries one.