[−][src]Enum redis_streams::StreamMaxlen
Utility enum for passing MAXLEN [= or ~] [COUNT]
arguments into StreamCommands
.
The enum value represents the count.
Variants
Equals(usize)
Aprrox(usize)
Trait Implementations
impl PartialEq<StreamMaxlen> for StreamMaxlen
[src]
fn eq(&self, other: &StreamMaxlen) -> bool
[src]
fn ne(&self, other: &StreamMaxlen) -> bool
[src]
impl Clone for StreamMaxlen
[src]
fn clone(&self) -> StreamMaxlen
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Eq for StreamMaxlen
[src]
impl Copy for StreamMaxlen
[src]
impl Debug for StreamMaxlen
[src]
impl ToRedisArgs for StreamMaxlen
[src]
fn write_redis_args<W: ?Sized>(&self, out: &mut W) where
W: RedisWrite,
[src]
W: RedisWrite,
fn to_redis_args(&self) -> Vec<Vec<u8>>
[src]
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
fn describe_numeric_behavior(&self) -> NumericBehavior
[src]
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
). Read more
fn is_single_arg(&self) -> bool
[src]
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. Read more
Auto Trait Implementations
impl Send for StreamMaxlen
impl Unpin for StreamMaxlen
impl Sync for StreamMaxlen
impl UnwindSafe for StreamMaxlen
impl RefUnwindSafe for StreamMaxlen
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,