Struct rustis::client::PooledClientManager
source · pub struct PooledClientManager { /* private fields */ }Available on crate feature
pool only.Expand description
An object which manages a pool of clients, based on bb8
Implementations§
source§impl PooledClientManager
impl PooledClientManager
pub fn new(config: impl IntoConfig) -> Result<Self>
Trait Implementations§
source§impl ManageConnection for PooledClientManager
impl ManageConnection for PooledClientManager
§type Connection = Client
type Connection = Client
The connection type this manager deals with.
source§fn connect<'s, 'a>(&'s self) -> Future<'a, Client>where
Self: 'a,
's: 'a,
fn connect<'s, 'a>(&'s self) -> Future<'a, Client>where Self: 'a, 's: 'a,
Attempts to create a new connection.
source§fn is_valid<'s, 'c, 'a>(&'s self, client: &'c mut Client) -> Future<'a, ()>where
Self: 'a,
's: 'a,
'c: 'a,
fn is_valid<'s, 'c, 'a>(&'s self, client: &'c mut Client) -> Future<'a, ()>where Self: 'a, 's: 'a, 'c: 'a,
Determines if the connection is still connected to the database.
source§fn has_broken(&self, _client: &mut Client) -> bool
fn has_broken(&self, _client: &mut Client) -> bool
Synchronously determine if the connection is no longer usable, if possible.