Struct relay_config::RedisConfig
source · pub struct RedisConfig {
pub connection: RedisConnection,
pub options: PartialRedisConfigOptions,
}
Expand description
Configuration for connecting a redis client.
Fields§
§connection: RedisConnection
Redis connection info.
options: PartialRedisConfigOptions
Additional configuration options for the redis client and a connections pool.
Implementations§
Trait Implementations§
source§impl Clone for RedisConfig
impl Clone for RedisConfig
source§fn clone(&self) -> RedisConfig
fn clone(&self) -> RedisConfig
Returns a copy of the value. Read more
1.0.0 · 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<'de> Deserialize<'de> for RedisConfig
impl<'de> Deserialize<'de> for RedisConfig
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
source§impl PartialEq for RedisConfig
impl PartialEq for RedisConfig
source§fn eq(&self, other: &RedisConfig) -> bool
fn eq(&self, other: &RedisConfig) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RedisConfig
impl Serialize for RedisConfig
impl Eq for RedisConfig
impl StructuralPartialEq for RedisConfig
Auto Trait Implementations§
impl Freeze for RedisConfig
impl RefUnwindSafe for RedisConfig
impl Send for RedisConfig
impl Sync for RedisConfig
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.