pub trait ConnectionManagerContext: Send + Sync + 'static + Sized {
type ConnectionInfo: ConnectionInfo;
// Required methods
fn connection_manager() -> &'static ConnectionManager<Self::ConnectionInfo>;
fn state_cache(
) -> &'static LocalKey<RefCell<Cache<&'static ArcSwap<ConnectionState>, Arc<ConnectionState>>>>;
// Provided methods
fn get_connection() -> ManagedConnection<Self> { ... }
fn client() -> &'static RedisResult<Client> { ... }
fn get_db() -> i64 { ... }
fn with_state<T>(with_fn: fn(_: &ConnectionState) -> T) -> T { ... }
}