pub struct PgManager { /* private fields */ }Expand description
bb8 manager for Postgres clients.
Implementations§
Trait Implementations§
Source§impl ManageConnection for PgManager
impl ManageConnection for PgManager
Source§type Connection = Client
type Connection = Client
The connection type this manager deals with.
Source§fn connect(
&self,
) -> impl Future<Output = Result<Self::Connection, Self::Error>> + Send
fn connect( &self, ) -> impl Future<Output = Result<Self::Connection, Self::Error>> + Send
Attempts to create a new connection.
Source§fn is_valid(
&self,
conn: &mut Self::Connection,
) -> impl Future<Output = Result<(), Self::Error>> + Send
fn is_valid( &self, conn: &mut Self::Connection, ) -> impl Future<Output = Result<(), Self::Error>> + Send
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 PgManager
impl RefUnwindSafe for PgManager
impl Send for PgManager
impl Sync for PgManager
impl Unpin for PgManager
impl UnwindSafe for PgManager
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