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 Monitor
ing 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 Monitor
ing 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 Monitor
ing 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more