pub enum FetchType {
New,
Pending,
After(StreamId),
}
Expand description
Possible ways to read items from queue
Variants§
New
Requests new messages.
New means not yet read by anyone.
Pending
Attempts to fetch only pending message.
If returns empty result, it means all messages were successfully consumed.
After(StreamId)
Fetch all pending messages after specified id.
Trait Implementations§
Source§impl ToRedisArgs for FetchType
impl ToRedisArgs for FetchType
Source§fn write_redis_args<W: ?Sized + RedisWrite>(&self, out: &mut W)
fn write_redis_args<W: ?Sized + RedisWrite>(&self, out: &mut W)
This writes the value into a vector of bytes. Each item
is a single argument. Most items generate a single item. Read more
Source§fn is_single_arg(&self) -> bool
fn is_single_arg(&self) -> bool
Returns an indiciation if the value contained is exactly one
argument. It returns false if it’s zero or more than one. This
is used in some high level functions to intelligently switch
between
GET
and MGET
variants.Source§fn to_redis_args(&self) -> Vec<Vec<u8>>
fn to_redis_args(&self) -> Vec<Vec<u8>>
This converts the value into a vector of bytes. Each item
is a single argument. Most items generate a vector of a
single item. Read more
Source§fn describe_numeric_behavior(&self) -> NumericBehavior
fn describe_numeric_behavior(&self) -> NumericBehavior
Returns an information about the contained value with regards
to it’s numeric behavior in a redis context. This is used in
some high level concepts to switch between different implementations
of redis functions (for instance
INCR
vs INCRBYFLOAT
).Auto Trait Implementations§
impl Freeze for FetchType
impl RefUnwindSafe for FetchType
impl Send for FetchType
impl Sync for FetchType
impl Unpin for FetchType
impl UnwindSafe for FetchType
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