Enum libmcaptcha::redis::RedisConnection
source · pub enum RedisConnection {
Single(Rc<RefCell<ConnectionManager>>),
Cluster(Rc<RefCell<ClusterConnection>>),
}
Expand description
Redis connection - manages both single and clustered deployments
Variants§
Implementations§
Trait Implementations§
source§impl Clone for RedisConnection
impl Clone for RedisConnection
source§fn clone(&self) -> RedisConnection
fn clone(&self) -> RedisConnection
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 RedisConnection
impl !Send for RedisConnection
impl !Sync for RedisConnection
impl Unpin for RedisConnection
impl !UnwindSafe for RedisConnection
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