Connect in redis::cluster_async - Rust
Description: Implements the process of connecting to a Redis server and obtaining a connection handle.

Skip to main content

## Connect

# Trait Connect

Source

    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§

Source

#### 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§

Source§

### impl Connect for MultiplexedConnection

Available on crate feature `cluster-async` only.