Struct skytable::pool::ConnectionMgrTls
source · pub struct ConnectionMgrTls { /* private fields */ }
Expand description
A connection manager for Skyhash/TLS connections
Implementations§
Trait Implementations§
source§impl Clone for ConnectionMgrTls
impl Clone for ConnectionMgrTls
source§fn clone(&self) -> ConnectionMgrTls
fn clone(&self) -> ConnectionMgrTls
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 ConnectionMgrTls
impl Debug for ConnectionMgrTls
source§impl ManageConnection for ConnectionMgrTls
impl ManageConnection for ConnectionMgrTls
§type Connection = ConnectionTls
type Connection = ConnectionTls
The connection type this manager deals with.
source§fn connect(&self) -> Result<Self::Connection, Self::Error>
fn connect(&self) -> Result<Self::Connection, Self::Error>
Attempts to create a new connection.
source§fn is_valid(&self, conn: &mut Self::Connection) -> Result<(), Self::Error>
fn is_valid(&self, conn: &mut Self::Connection) -> Result<(), Self::Error>
Determines if the connection is still connected to the database. Read more
source§fn has_broken(&self, _: &mut Self::Connection) -> bool
fn has_broken(&self, _: &mut Self::Connection) -> bool
Quickly determines if the connection is no longer usable. Read more
source§impl ManageConnection for ConnectionMgrTls
impl ManageConnection for ConnectionMgrTls
§type Connection = ConnectionTlsAsync
type Connection = ConnectionTlsAsync
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, _: &mut Self::Connection) -> bool
fn has_broken(&self, _: &mut Self::Connection) -> bool
Synchronously determine if the connection is no longer usable, if possible.
source§impl PartialEq for ConnectionMgrTls
impl PartialEq for ConnectionMgrTls
source§fn eq(&self, other: &ConnectionMgrTls) -> bool
fn eq(&self, other: &ConnectionMgrTls) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ConnectionMgrTls
Auto Trait Implementations§
impl Freeze for ConnectionMgrTls
impl RefUnwindSafe for ConnectionMgrTls
impl Send for ConnectionMgrTls
impl Sync for ConnectionMgrTls
impl Unpin for ConnectionMgrTls
impl UnwindSafe for ConnectionMgrTls
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