Struct l337_redis::RedisConnectionManager [−][src]
pub struct RedisConnectionManager { /* fields omitted */ }
Expand description
A ManageConnection
for RedisConnections
s.
Implementations
impl RedisConnectionManager
[src]
impl RedisConnectionManager
[src]pub fn new(
params: impl IntoConnectionInfo
) -> Result<RedisConnectionManager, RedisError>
[src]
pub fn new(
params: impl IntoConnectionInfo
) -> Result<RedisConnectionManager, RedisError>
[src]Create a new RedisConnectionManager
.
Trait Implementations
impl Debug for RedisConnectionManager
[src]
impl Debug for RedisConnectionManager
[src]impl ManageConnection for RedisConnectionManager
[src]
impl ManageConnection for RedisConnectionManager
[src]type Connection = AsyncConnection
type Connection = AsyncConnection
The connection type this manager deals with.
type Error = RedisError
type Error = RedisError
The error type returned by Connection
s.
fn connect<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Error<Self::Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
fn connect<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Error<Self::Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]Attempts to create a new connection. Read more
fn is_valid<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Connection
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
fn is_valid<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Connection
) -> Pin<Box<dyn Future<Output = Result<(), Error<Self::Error>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]Determines if the connection is still connected to the database. Read more
fn has_broken(&self, conn: &mut Self::Connection) -> bool
[src]
fn has_broken(&self, conn: &mut Self::Connection) -> bool
[src]Quick check to determine if the connection has broken
Auto Trait Implementations
impl RefUnwindSafe for RedisConnectionManager
impl Send for RedisConnectionManager
impl Sync for RedisConnectionManager
impl Unpin for RedisConnectionManager
impl UnwindSafe for RedisConnectionManager
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]