redis::aio - Rust
Description: Adds async IO support to redis.

Skip to main content

## Module aio

Source
Available on crate feature `aio` only.
Expand description

Adds async IO support to redis.

## Modules§

smol`smol-comp`
  Enables the smol compatibility
tokio`tokio-comp`
  Enables the tokio compatibility

## Structs§

ConnectionManager`connection-manager`
  A `ConnectionManager` is a proxy that wraps a multiplexed connection and automatically reconnects to the server when necessary.
ConnectionManagerConfig`connection-manager`
  The configuration for reconnect mechanism and request timing for the ConnectionManager
Monitor
  Represents a `Monitor` connection.
MultiplexedConnection
  A connection object which can be cloned, allowing requests to be be sent concurrently on the same underlying connection (tcp/unix socket).
PubSub
  A connection dedicated to RESP2 pubsub messages.
PubSubSink
  The sink part of a split async Pubsub.
PubSubStream
  The stream part of a split async Pubsub.
SendError
  An error showing that the receiver

## Traits§

AsyncPushSender
  A trait for sender parts of a channel that can be used for sending push messages from async connection.
AsyncStream
  Trait for objects that implements `AsyncRead` and `AsyncWrite`
ConnectionLike
  An async abstraction over connections.

## Functions§

prefer_smol`smol-comp` and `tokio-comp`
  Mark Smol as the preferred runtime.
prefer_tokio`tokio-comp` and `smol-comp`
  Mark Tokio as the preferred runtime.