pub struct RedisPubsub {
pub connection: RedisConnection,
pub stream: UnboundedReceiver<PushInfo>,
}Fields§
§connection: RedisConnection§stream: UnboundedReceiver<PushInfo>Implementations§
Source§impl RedisPubsub
impl RedisPubsub
pub async fn subscribe( &mut self, channel_name: impl ToRedisArgs + Display, ) -> RedisResult<()>
Auto Trait Implementations§
impl Freeze for RedisPubsub
impl !RefUnwindSafe for RedisPubsub
impl Send for RedisPubsub
impl Sync for RedisPubsub
impl Unpin for RedisPubsub
impl !UnwindSafe for RedisPubsub
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