[][src]Struct redis::streams::StreamReadOptions

pub struct StreamReadOptions { /* fields omitted */ }
This is supported on crate feature streams only.

Builder options for xread_options command.

Implementations

impl StreamReadOptions[src]

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

Indicates whether the command is participating in a group and generating ACKs

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

Sets the command so that it avoids adding the message to the PEL in cases where reliability is not a requirement and the occasional message loss is acceptable.

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

Sets the block time in milliseconds.

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

Sets the maximum number of elements to return per stream.

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

Sets the name of a consumer group associated to the stream.

Trait Implementations

impl Debug for StreamReadOptions[src]

impl Default for StreamReadOptions[src]

impl ToRedisArgs for StreamReadOptions[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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<V, T> VZip<V> for T where
    V: MultiLane<T>,