pub struct RedisClientOpt {
pub addr: String,
pub cluster_addr: Vec<String>,
pub max_lifetime: Duration,
pub idle_timeout: Duration,
pub connection_timeout: Duration,
pub connection_type: RdbType,
pub pool_size: u32,
pub min_pool_size: u32,
}Fields§
§addr: String§cluster_addr: Vec<String>§max_lifetime: Duration§idle_timeout: Duration§connection_timeout: Duration§connection_type: RdbType§pool_size: u32§min_pool_size: u32Implementations§
Trait Implementations§
Source§impl Clone for RedisClientOpt
impl Clone for RedisClientOpt
Source§fn clone(&self) -> RedisClientOpt
fn clone(&self) -> RedisClientOpt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RedisClientOpt
impl Debug for RedisClientOpt
Auto Trait Implementations§
impl Freeze for RedisClientOpt
impl RefUnwindSafe for RedisClientOpt
impl Send for RedisClientOpt
impl Sync for RedisClientOpt
impl Unpin for RedisClientOpt
impl UnsafeUnpin for RedisClientOpt
impl UnwindSafe for RedisClientOpt
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more