Struct async_sqlite::Pool
source · pub struct Pool { /* private fields */ }
Expand description
A simple Pool of sqlite connections.
A Pool has the same API as an individual Client
.
Implementations§
source§impl Pool
impl Pool
sourcepub async fn conn<F, T>(&self, func: F) -> Result<T, Error>where
F: FnOnce(&Connection) -> Result<T, Error> + Send + 'static,
T: Send + 'static,
pub async fn conn<F, T>(&self, func: F) -> Result<T, Error>where F: FnOnce(&Connection) -> Result<T, Error> + Send + 'static, T: Send + 'static,
Invokes the provided function with a rusqlite::Connection
.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Pool
impl Send for Pool
impl Sync for Pool
impl Unpin for Pool
impl UnwindSafe for Pool
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