Struct async_sqlite::Client
source · pub struct Client { /* private fields */ }
Expand description
Client represents a single sqlite connection that can be used from async contexts.
Implementations§
source§impl Client
impl Client
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 Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnwindSafe for Client
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