pub enum RedisConfigRef<'a> {
Cluster {
cluster_nodes: &'a Vec<String>,
options: RedisConfigOptions,
},
Single {
server: &'a String,
options: RedisConfigOptions,
},
}
Expand description
Reference to the RedisConfig
with the final RedisConfigOptions
.
Variants§
Cluster
Connect to a Redis Cluster.
Fields
§
options: RedisConfigOptions
Options of the Redis config.
Single
Connect to a single Redis instance.
Fields
§
options: RedisConfigOptions
Options of the Redis config.
Trait Implementations§
Source§impl<'a> Clone for RedisConfigRef<'a>
impl<'a> Clone for RedisConfigRef<'a>
Source§fn clone(&self) -> RedisConfigRef<'a>
fn clone(&self) -> RedisConfigRef<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for RedisConfigRef<'a>
impl<'a> RefUnwindSafe for RedisConfigRef<'a>
impl<'a> Send for RedisConfigRef<'a>
impl<'a> Sync for RedisConfigRef<'a>
impl<'a> Unpin for RedisConfigRef<'a>
impl<'a> UnwindSafe for RedisConfigRef<'a>
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