pub struct ReliableStreamSubscriber { /* private fields */ }Expand description
Reliable subscriber using Redis Streams and Consumer Groups
Implementations§
Source§impl ReliableStreamSubscriber
impl ReliableStreamSubscriber
Sourcepub fn new(
redis_url: &str,
config: InvalidationConfig,
group_name: &str,
) -> CacheResult<Self>
pub fn new( redis_url: &str, config: InvalidationConfig, group_name: &str, ) -> CacheResult<Self>
pub fn start<F, Fut>(&self, handler: F) -> JoinHandle<()>where
F: Fn(InvalidationMessage) -> Fut + Send + Sync + 'static,
Fut: Future<Output = CacheResult<()>> + Send + 'static,
Auto Trait Implementations§
impl Freeze for ReliableStreamSubscriber
impl !RefUnwindSafe for ReliableStreamSubscriber
impl Send for ReliableStreamSubscriber
impl Sync for ReliableStreamSubscriber
impl Unpin for ReliableStreamSubscriber
impl UnsafeUnpin for ReliableStreamSubscriber
impl !UnwindSafe for ReliableStreamSubscriber
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