pub struct AsyncConnection { /* private fields */ }
Expand description
An async rusqlite connection.
Implementations§
Source§impl AsyncConnection
impl AsyncConnection
Sourcepub fn builder() -> AsyncConnectionBuilder
pub fn builder() -> AsyncConnectionBuilder
Get a builder for an AsyncConnection
.
Sourcepub async fn close(&self) -> Result<(), Error>
pub async fn close(&self) -> Result<(), Error>
Close the database.
This will queue a close request. When the database processes the close request, all current queued requests will be aborted.
When this function returns, the database will be closed no matter the value of the return. The return value will return errors that occured while closing.
Trait Implementations§
Source§impl Clone for AsyncConnection
impl Clone for AsyncConnection
Source§fn clone(&self) -> AsyncConnection
fn clone(&self) -> AsyncConnection
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 moreAuto Trait Implementations§
impl Freeze for AsyncConnection
impl RefUnwindSafe for AsyncConnection
impl Send for AsyncConnection
impl Sync for AsyncConnection
impl Unpin for AsyncConnection
impl UnwindSafe for AsyncConnection
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