[][src]Struct redis_streams::StreamReadOptions

pub struct StreamReadOptions { /* fields omitted */ }

Builder options for xread_options command.

Methods

impl StreamReadOptions[src]

pub fn read_only(&self) -> bool[src]

pub fn noack(self) -> Self[src]

pub fn block(self, ms: usize) -> Self[src]

pub fn count(self, n: usize) -> Self[src]

pub fn group<GN: ToRedisArgs, CN: ToRedisArgs>(
    self,
    group_name: GN,
    consumer_name: CN
) -> Self
[src]

Trait Implementations

impl Default for StreamReadOptions[src]

impl Debug for StreamReadOptions[src]

impl ToRedisArgs for StreamReadOptions[src]

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

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T