pub struct Monitor { /* private fields */ }Expand description
Represents a Monitor connection.
Implementations§
Source§impl Monitor
impl Monitor
Sourcepub async fn monitor(&mut self) -> RedisResult<()>
👎Deprecated: A monitor now sends the MONITOR command automatically
pub async fn monitor(&mut self) -> RedisResult<()>
Deliver the MONITOR command to this Monitoring wrapper.
Sourcepub fn on_message<'a, T: FromRedisValue + 'a>(
&'a mut self,
) -> impl Stream<Item = T> + 'a
pub fn on_message<'a, T: FromRedisValue + 'a>( &'a mut self, ) -> impl Stream<Item = T> + 'a
Returns Stream of FromRedisValue values from this Monitoring connection
Sourcepub fn into_on_message<T: FromRedisValue>(self) -> impl Stream<Item = T>
pub fn into_on_message<T: FromRedisValue>(self) -> impl Stream<Item = T>
Returns Stream of FromRedisValue values from this Monitoring connection
Auto Trait Implementations§
impl Freeze for Monitor
impl !RefUnwindSafe for Monitor
impl Send for Monitor
impl Sync for Monitor
impl Unpin for Monitor
impl !UnwindSafe for Monitor
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