pub struct MemcacheConnectionManager { /* private fields */ }
Expand description
A bb8::ManageConnection
for memcache_async::ascii::Protocol
.
Implementations§
Source§impl MemcacheConnectionManager
impl MemcacheConnectionManager
pub fn new<U: Connectable>(u: U) -> Result<MemcacheConnectionManager, Error>
pub fn with_timeouts( self, read_timeout: Duration, write_timeout: Duration, ) -> Self
Trait Implementations§
Source§impl Clone for MemcacheConnectionManager
impl Clone for MemcacheConnectionManager
Source§fn clone(&self) -> MemcacheConnectionManager
fn clone(&self) -> MemcacheConnectionManager
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 moreSource§impl Debug for MemcacheConnectionManager
impl Debug for MemcacheConnectionManager
Source§impl ManageConnection for MemcacheConnectionManager
impl ManageConnection for MemcacheConnectionManager
Source§type Connection = Connection
type Connection = Connection
The connection type this manager deals with.
Source§fn connect<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn connect<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Self::Connection, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Attempts to create a new connection.
Source§fn is_valid<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Connection,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn is_valid<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut Self::Connection,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Determines if the connection is still connected to the database.
Source§fn has_broken(&self, conn: &mut Self::Connection) -> bool
fn has_broken(&self, conn: &mut Self::Connection) -> bool
Synchronously determine if the connection is no longer usable, if possible.
Auto Trait Implementations§
impl Freeze for MemcacheConnectionManager
impl RefUnwindSafe for MemcacheConnectionManager
impl Send for MemcacheConnectionManager
impl Sync for MemcacheConnectionManager
impl Unpin for MemcacheConnectionManager
impl UnwindSafe for MemcacheConnectionManager
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