pub struct RedisConfig {
pub url: String,
pub max_connections: u32,
pub min_connections: u32,
pub connect_timeout_secs: u64,
pub param_channel: String,
pub signal_channel: String,
}Fields§
§url: StringRedis connection URL
max_connections: u32Maximum connections in pool
min_connections: u32Minimum connections in pool
connect_timeout_secs: u64Connection timeout in seconds
param_channel: StringPub/Sub channel for parameters
signal_channel: StringPub/Sub channel for signals
Trait Implementations§
Source§impl Clone for RedisConfig
impl Clone for RedisConfig
Source§fn clone(&self) -> RedisConfig
fn clone(&self) -> RedisConfig
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 RedisConfig
impl Debug for RedisConfig
Source§impl Default for RedisConfig
impl Default for RedisConfig
Source§impl<'de> Deserialize<'de> for RedisConfigwhere
RedisConfig: Default,
impl<'de> Deserialize<'de> for RedisConfigwhere
RedisConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for RedisConfig
impl RefUnwindSafe for RedisConfig
impl Send for RedisConfig
impl Sync for RedisConfig
impl Unpin for RedisConfig
impl UnsafeUnpin for RedisConfig
impl UnwindSafe for RedisConfig
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