pub trait Connect: Sized {
// Required method
fn connect_with_config<'a, T>(
info: T,
config: AsyncConnectionConfig,
) -> RedisFuture<'a, Self>
where T: IntoConnectionInfo + Send + 'a;
}Available on crate features
cluster and aio only.Expand description
Implements the process of connecting to a Redis server and obtaining a connection handle.
Required Methods§
Sourcefn connect_with_config<'a, T>(
info: T,
config: AsyncConnectionConfig,
) -> RedisFuture<'a, Self>where
T: IntoConnectionInfo + Send + 'a,
fn connect_with_config<'a, T>(
info: T,
config: AsyncConnectionConfig,
) -> RedisFuture<'a, Self>where
T: IntoConnectionInfo + Send + 'a,
Connect to a node, returning handle for command execution.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
impl Connect for MultiplexedConnection
Available on crate feature
cluster-async only.