pub trait RedisConnectionConfig {
// Required methods
fn host(&self) -> Option<&str>;
fn port(&self) -> Option<u16>;
fn username(&self) -> Option<&str>;
fn password(&self) -> Option<&str>;
fn ssl(&self) -> bool;
fn connection_timeout(&self) -> u16;
fn response_timeout(&self) -> u16;
fn number_of_retries(&self) -> usize;
fn exponent_base(&self) -> u64;
fn max_delay(&self) -> u64;
fn factor(&self) -> u64;
}Expand description
Redis connection settings shared by Redis-owned config structs.
Required Methods§
fn host(&self) -> Option<&str>
fn port(&self) -> Option<u16>
fn username(&self) -> Option<&str>
fn password(&self) -> Option<&str>
fn ssl(&self) -> bool
fn connection_timeout(&self) -> u16
fn response_timeout(&self) -> u16
fn number_of_retries(&self) -> usize
fn exponent_base(&self) -> u64
fn max_delay(&self) -> u64
fn factor(&self) -> u64
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".