pub struct RedisStreams { /* private fields */ }Expand description
Redis Streams client for event-driven architectures
Implementations§
Trait Implementations§
Source§impl Clone for RedisStreams
impl Clone for RedisStreams
Source§fn clone(&self) -> RedisStreams
fn clone(&self) -> RedisStreams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl StreamingBackend for RedisStreams
Implement StreamingBackend trait for RedisStreams
impl StreamingBackend for RedisStreams
Implement StreamingBackend trait for RedisStreams
Source§fn stream_add<'a>(
&'a self,
stream_key: &'a str,
fields: Vec<(String, String)>,
maxlen: Option<usize>,
) -> BoxFuture<'a, Result<String>>
fn stream_add<'a>( &'a self, stream_key: &'a str, fields: Vec<(String, String)>, maxlen: Option<usize>, ) -> BoxFuture<'a, Result<String>>
Add an entry to a stream
Source§fn stream_read_latest<'a>(
&'a self,
stream_key: &'a str,
count: usize,
) -> BoxFuture<'a, Result<Vec<StreamEntry>>>
fn stream_read_latest<'a>( &'a self, stream_key: &'a str, count: usize, ) -> BoxFuture<'a, Result<Vec<StreamEntry>>>
Read the latest N entries from a stream (newest first)
Auto Trait Implementations§
impl Freeze for RedisStreams
impl !RefUnwindSafe for RedisStreams
impl Send for RedisStreams
impl Sync for RedisStreams
impl Unpin for RedisStreams
impl UnsafeUnpin for RedisStreams
impl !UnwindSafe for RedisStreams
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