[−][src]Struct r2d2_redis_cluster::RedisClusterConnectionManager
An r2d2::ConnectionManager
for redis_cluster_rs::Client
.
Implementations
impl RedisClusterConnectionManager
[src]
pub fn new<T: IntoConnectionInfo>(
input_nodes: Vec<T>
) -> RedisResult<RedisClusterConnectionManager>
[src]
input_nodes: Vec<T>
) -> RedisResult<RedisClusterConnectionManager>
Create new RedisClusterConnectionManager
.
pub fn new_with_auth<T: IntoConnectionInfo>(
input_nodes: Vec<T>,
password: String
) -> RedisResult<RedisClusterConnectionManager>
[src]
input_nodes: Vec<T>,
password: String
) -> RedisResult<RedisClusterConnectionManager>
👎 Deprecated:
Please use new and password function
Create new RedisClusterConnectionManager
with authentication.
pub fn set_readonly(&mut self, readonly: bool)
[src]
Set read only mode for new Connection.
pub fn set_password(&mut self, password: String)
[src]
Set password for new Connection.
pub fn set_read_timeout(&mut self, timeout: Option<Duration>)
[src]
Set the read timeout for the connection.
pub fn set_write_timeout(&mut self, timeout: Option<Duration>)
[src]
Set the write timeout for the connection.
Trait Implementations
impl Debug for RedisClusterConnectionManager
[src]
impl ManageConnection for RedisClusterConnectionManager
[src]
type Connection = Connection
The connection type this manager deals with.
type Error = RedisError
The error type returned by Connection
s.
pub fn connect(&self) -> Result<Self::Connection, Self::Error>
[src]
pub fn is_valid(&self, conn: &mut Self::Connection) -> Result<(), Self::Error>
[src]
pub fn has_broken(&self, _conn: &mut Self::Connection) -> bool
[src]
Auto Trait Implementations
impl RefUnwindSafe for RedisClusterConnectionManager
[src]
impl Send for RedisClusterConnectionManager
[src]
impl Sync for RedisClusterConnectionManager
[src]
impl Unpin for RedisClusterConnectionManager
[src]
impl UnwindSafe for RedisClusterConnectionManager
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,