Trait redis::cluster_async::Connect
source · pub trait Connect: Sized {
// Required method
fn connect<'a, T>(
info: T,
response_timeout: Duration,
connection_timeout: Duration
) -> RedisFuture<'a, Self>
where T: IntoConnectionInfo + Send + 'a;
}
Expand description
Implements the process of connecting to a Redis server and obtaining a connection handle.
Required Methods§
sourcefn connect<'a, T>(
info: T,
response_timeout: Duration,
connection_timeout: Duration
) -> RedisFuture<'a, Self>where
T: IntoConnectionInfo + Send + 'a,
fn connect<'a, T>(
info: T,
response_timeout: Duration,
connection_timeout: Duration
) -> RedisFuture<'a, Self>where
T: IntoConnectionInfo + Send + 'a,
Connect to a node, returning handle for command execution.
Object Safety§
This trait is not object safe.