Enum libmcaptcha::redis::RedisConfig
source · pub enum RedisConfig {
Single(String),
Cluster(Vec<String>),
}
Expand description
Client configuration
Variants§
Implementations§
source§impl RedisConfig
impl RedisConfig
sourcepub async fn connect(&self) -> RedisClient
pub async fn connect(&self) -> RedisClient
Create Redis connection
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 moreAuto Trait Implementations§
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