Struct redis::streams::StreamReadOptions [−][src]
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]
self,
group_name: GN,
consumer_name: CN
) -> Self
Sets the name of a consumer group associated to the stream.
Trait Implementations
impl Debug for StreamReadOptions
[src]
impl Default for StreamReadOptions
[src]
fn default() -> StreamReadOptions
[src]
impl ToRedisArgs for StreamReadOptions
[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]
fn describe_numeric_behavior(&self) -> NumericBehavior
[src]
fn is_single_arg(&self) -> bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for StreamReadOptions
[src]
impl Send for StreamReadOptions
[src]
impl Sync for StreamReadOptions
[src]
impl Unpin for StreamReadOptions
[src]
impl UnwindSafe for StreamReadOptions
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,