pub struct SkytableConnectionManager { /* private fields */ }Expand description
A bb8::ManageConnection for skytable::aio::Connection.
Implementations§
Source§impl SkytableConnectionManager
impl SkytableConnectionManager
Sourcepub fn new(host: &str, port: u16) -> SkytableConnectionManager
pub fn new(host: &str, port: u16) -> SkytableConnectionManager
Create a new SkytableConnectionManager.
See skytable::aio::Connection::new for a description of the parameter types.
Trait Implementations§
Source§impl Clone for SkytableConnectionManager
impl Clone for SkytableConnectionManager
Source§fn clone(&self) -> SkytableConnectionManager
fn clone(&self) -> SkytableConnectionManager
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 Debug for SkytableConnectionManager
impl Debug for SkytableConnectionManager
Source§impl ManageConnection for SkytableConnectionManager
impl ManageConnection for SkytableConnectionManager
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, 'life2, 'async_trait>(
&'life0 self,
conn: &'life1 mut PooledConnection<'life2, Self>,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn is_valid<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
conn: &'life1 mut PooledConnection<'life2, Self>,
) -> Pin<Box<dyn Future<Output = Result<(), Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: '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.
Auto Trait Implementations§
impl Freeze for SkytableConnectionManager
impl RefUnwindSafe for SkytableConnectionManager
impl Send for SkytableConnectionManager
impl Sync for SkytableConnectionManager
impl Unpin for SkytableConnectionManager
impl UnwindSafe for SkytableConnectionManager
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