pub struct RedisClientRepo { /* private fields */ }
Expand description
Redis Client Repository.
Implementations§
Source§impl RedisClientRepo
impl RedisClientRepo
Sourcepub fn add(&self, name: impl Into<String>, client: impl Into<RedisClient>)
pub fn add(&self, name: impl Into<String>, client: impl Into<RedisClient>)
Add a Redis client to the repository.
Sourcepub fn get(&self, name: &str) -> Option<RedisClient>
pub fn get(&self, name: &str) -> Option<RedisClient>
Get a Redis client from the repository by its name.
Sourcepub fn remove(&self, name: &str) -> Option<RedisClient>
pub fn remove(&self, name: &str) -> Option<RedisClient>
Remove a Redis client from the repository by its name.
Trait Implementations§
Source§impl Debug for RedisClientRepo
impl Debug for RedisClientRepo
Source§impl Default for RedisClientRepo
impl Default for RedisClientRepo
Source§fn default() -> RedisClientRepo
fn default() -> RedisClientRepo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for RedisClientRepo
impl RefUnwindSafe for RedisClientRepo
impl Send for RedisClientRepo
impl Sync for RedisClientRepo
impl Unpin for RedisClientRepo
impl UnwindSafe for RedisClientRepo
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more