pub struct SqliteConnectionManager(/* private fields */);
Expand description
An r2d2::ManageConnection
for rusqlite::Connection
s.
Implementations§
Trait Implementations§
Source§impl ManageConnection for SqliteConnectionManager
impl ManageConnection for SqliteConnectionManager
Source§type Connection = Connection
type Connection = Connection
The connection type this manager deals with.
Source§fn is_valid(&self, conn: &mut Connection) -> Result<(), Error>
fn is_valid(&self, conn: &mut Connection) -> Result<(), Error>
Determines if the connection is still connected to the database. Read more
Source§fn has_broken(&self, _: &mut Connection) -> bool
fn has_broken(&self, _: &mut Connection) -> bool
Quickly determines if the connection is no longer usable. Read more
Auto Trait Implementations§
impl Freeze for SqliteConnectionManager
impl RefUnwindSafe for SqliteConnectionManager
impl Send for SqliteConnectionManager
impl Sync for SqliteConnectionManager
impl Unpin for SqliteConnectionManager
impl UnwindSafe for SqliteConnectionManager
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