pub struct RusqliteConnectionManager(/* private fields */);
Expand description
A bb8::ManageConnection
implementation for rusqlite::Connection
instances.
Implementations§
Source§impl RusqliteConnectionManager
impl RusqliteConnectionManager
Sourcepub fn new_with_flags<P: AsRef<Path>>(path: P, flags: OpenFlags) -> Self
pub fn new_with_flags<P: AsRef<Path>>(path: P, flags: OpenFlags) -> Self
Analogous to rusqlite::Connection::open_with_flags()
.
Trait Implementations§
Source§impl Clone for RusqliteConnectionManager
impl Clone for RusqliteConnectionManager
Source§fn clone(&self) -> RusqliteConnectionManager
fn clone(&self) -> RusqliteConnectionManager
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 RusqliteConnectionManager
impl Debug for RusqliteConnectionManager
Source§impl ManageConnection for RusqliteConnectionManager
impl ManageConnection for RusqliteConnectionManager
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, '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, _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 RusqliteConnectionManager
impl RefUnwindSafe for RusqliteConnectionManager
impl Send for RusqliteConnectionManager
impl Sync for RusqliteConnectionManager
impl Unpin for RusqliteConnectionManager
impl UnwindSafe for RusqliteConnectionManager
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