pub struct RedisConnectionManager {
pub redis_client: RedisClient,
}Fields§
§redis_client: RedisClientTrait Implementations§
Source§impl Clone for RedisConnectionManager
impl Clone for RedisConnectionManager
Source§fn clone(&self) -> RedisConnectionManager
fn clone(&self) -> RedisConnectionManager
Returns a duplicate 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 ManageConnection for RedisConnectionManager
impl ManageConnection for RedisConnectionManager
Source§type Connection = RedisConnection
type Connection = RedisConnection
The connection type this manager deals with.
Source§type Error = RedisError
type Error = RedisError
The error type returned by
Connections.Source§fn connect(&self) -> Result<RedisConnection, Self::Error>
fn connect(&self) -> Result<RedisConnection, Self::Error>
Attempts to create a new connection.
Source§fn is_valid(&self, conn: &mut RedisConnection) -> Result<(), Self::Error>
fn is_valid(&self, conn: &mut RedisConnection) -> Result<(), Self::Error>
Determines if the connection is still connected to the database. Read more
Source§fn has_broken(&self, conn: &mut RedisConnection) -> bool
fn has_broken(&self, conn: &mut RedisConnection) -> bool
Quickly determines if the connection is no longer usable. Read more
Auto Trait Implementations§
impl Freeze for RedisConnectionManager
impl RefUnwindSafe for RedisConnectionManager
impl Send for RedisConnectionManager
impl Sync for RedisConnectionManager
impl Unpin for RedisConnectionManager
impl UnwindSafe for RedisConnectionManager
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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