#[non_exhaustive]pub enum StreamNackMode {
Silent,
Fail,
Fatal,
}Expand description
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Silent
The consumer is NACKing due to internal errors or shutdown, not because the message itself is problematic. The delivery counter of each specified message is decremented by 1.
Fail
The message causes problems for this consumer but may succeed for other consumers. The delivery counter is left unchanged.
Fatal
The message is malformed/poison-pill/suspected-malicious.
The delivery counter is pinned to a sentinel value (i64::MAX) that
survives subsequent re-deliveries, so the message remains identifiable
as previously-FATAL for downstream tooling.
Trait Implementations§
Source§impl Clone for StreamNackMode
impl Clone for StreamNackMode
Source§fn clone(&self) -> StreamNackMode
fn clone(&self) -> StreamNackMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StreamNackMode
Source§impl Debug for StreamNackMode
impl Debug for StreamNackMode
impl Eq for StreamNackMode
Source§impl PartialEq for StreamNackMode
impl PartialEq for StreamNackMode
impl StructuralPartialEq for StreamNackMode
Source§impl ToRedisArgs for StreamNackMode
Available on crate feature streams only.
impl ToRedisArgs for StreamNackMode
Available on crate feature
streams only.Source§fn write_redis_args<W>(&self, out: &mut W)where
W: ?Sized + RedisWrite,
fn write_redis_args<W>(&self, out: &mut W)where
W: ?Sized + RedisWrite,
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 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).Source§fn num_of_args(&self) -> usize
fn num_of_args(&self) -> usize
Returns the number of arguments this value will generate. Read more
impl ToSingleRedisArg for StreamNackMode
Available on crate feature
streams only.Auto Trait Implementations§
impl Freeze for StreamNackMode
impl RefUnwindSafe for StreamNackMode
impl Send for StreamNackMode
impl Sync for StreamNackMode
impl Unpin for StreamNackMode
impl UnsafeUnpin for StreamNackMode
impl UnwindSafe for StreamNackMode
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