pub struct Queue<'a> { /* private fields */ }Expand description
The group’s commands, queued on a pipeline or a transaction.
What each replies is read from exec, in the order queued.
Implementations§
Source§impl Queue<'_>
impl Queue<'_>
Sourcepub fn smembers(&mut self, key: impl ToRedisArgs) -> &mut Self
pub fn smembers(&mut self, key: impl ToRedisArgs) -> &mut Self
Every member.
Sourcepub fn sismember(
&mut self,
key: impl ToRedisArgs,
member: impl ToRedisArgs,
) -> &mut Self
pub fn sismember( &mut self, key: impl ToRedisArgs, member: impl ToRedisArgs, ) -> &mut Self
Whether the value is a member.
Sourcepub fn smismember(
&mut self,
key: impl ToRedisArgs,
members: impl ToRedisArgs,
) -> &mut Self
pub fn smismember( &mut self, key: impl ToRedisArgs, members: impl ToRedisArgs, ) -> &mut Self
Whether each of the values is a member, in order.
Sourcepub fn scard(&mut self, key: impl ToRedisArgs) -> &mut Self
pub fn scard(&mut self, key: impl ToRedisArgs) -> &mut Self
How many members the set has.
Sourcepub fn srandmember(&mut self, key: impl ToRedisArgs) -> &mut Self
pub fn srandmember(&mut self, key: impl ToRedisArgs) -> &mut Self
A member chosen at random.
Sourcepub fn srandmember_multiple(
&mut self,
key: impl ToRedisArgs,
count: isize,
) -> &mut Self
pub fn srandmember_multiple( &mut self, key: impl ToRedisArgs, count: isize, ) -> &mut Self
count distinct members chosen at random, or with a negative count
that many, possibly repeated.
Sourcepub fn sdiff(&mut self, keys: impl ToRedisArgs) -> &mut Self
pub fn sdiff(&mut self, keys: impl ToRedisArgs) -> &mut Self
The members of the first set that are in none of the others.
Sourcepub fn sinter(&mut self, keys: impl ToRedisArgs) -> &mut Self
pub fn sinter(&mut self, keys: impl ToRedisArgs) -> &mut Self
The members that are in every one of the sets.
Sourcepub fn sunion(&mut self, keys: impl ToRedisArgs) -> &mut Self
pub fn sunion(&mut self, keys: impl ToRedisArgs) -> &mut Self
The members that are in any of the sets.
Sourcepub fn sadd(
&mut self,
key: impl ToRedisArgs,
members: impl ToRedisArgs,
) -> &mut Self
pub fn sadd( &mut self, key: impl ToRedisArgs, members: impl ToRedisArgs, ) -> &mut Self
Adds the members, returning how many are new.
Sourcepub fn srem(
&mut self,
key: impl ToRedisArgs,
members: impl ToRedisArgs,
) -> &mut Self
pub fn srem( &mut self, key: impl ToRedisArgs, members: impl ToRedisArgs, ) -> &mut Self
Removes the members, returning how many there were.
Sourcepub fn spop(&mut self, key: impl ToRedisArgs) -> &mut Self
pub fn spop(&mut self, key: impl ToRedisArgs) -> &mut Self
Removes and returns a member chosen at random.
Sourcepub fn smove(
&mut self,
source: impl ToRedisArgs,
destination: impl ToRedisArgs,
member: impl ToRedisArgs,
) -> &mut Self
pub fn smove( &mut self, source: impl ToRedisArgs, destination: impl ToRedisArgs, member: impl ToRedisArgs, ) -> &mut Self
Moves a member from one set to another. false if it is not in
source.
Sourcepub fn sdiffstore(
&mut self,
destination: impl ToRedisArgs,
keys: impl ToRedisArgs,
) -> &mut Self
pub fn sdiffstore( &mut self, destination: impl ToRedisArgs, keys: impl ToRedisArgs, ) -> &mut Self
Stores Commands::sdiff of the sets at destination, returning its
size.
Sourcepub fn sinterstore(
&mut self,
destination: impl ToRedisArgs,
keys: impl ToRedisArgs,
) -> &mut Self
pub fn sinterstore( &mut self, destination: impl ToRedisArgs, keys: impl ToRedisArgs, ) -> &mut Self
Stores Commands::sinter of the sets at destination, returning its
size.
Sourcepub fn sunionstore(
&mut self,
destination: impl ToRedisArgs,
keys: impl ToRedisArgs,
) -> &mut Self
pub fn sunionstore( &mut self, destination: impl ToRedisArgs, keys: impl ToRedisArgs, ) -> &mut Self
Stores Commands::sunion of the sets at destination, returning its
size.
Auto Trait Implementations§
impl<'a> !UnwindSafe for Queue<'a>
impl<'a> Freeze for Queue<'a>
impl<'a> RefUnwindSafe for Queue<'a>
impl<'a> Send for Queue<'a>
impl<'a> Sync for Queue<'a>
impl<'a> Unpin for Queue<'a>
impl<'a> UnsafeUnpin for Queue<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request