pub struct WalPool { /* private fields */ }
Expand description
A handle to a pool of connections, designed for a database in WAL mode.
Implementations§
Source§impl WalPool
impl WalPool
Sourcepub fn builder() -> WalPoolBuilder
pub fn builder() -> WalPoolBuilder
Get a builder for a WalPool
.
Sourcepub async fn close(&self) -> Result<(), Error>
pub async fn close(&self) -> Result<(), Error>
Close the pool.
This will queue a close request to each thread. When each thread processes the close request, it will shut down. When the last thread processed the close message, all current queued requests will be aborted.
When this function returns, the pool will be closed no matter the value of the return. The return value will return the last error that occured while closing.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WalPool
impl RefUnwindSafe for WalPool
impl Send for WalPool
impl Sync for WalPool
impl Unpin for WalPool
impl UnwindSafe for WalPool
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