pub struct AsyncConnectionBuilder {}
Expand description
A builder for an AsyncConnection
.
Implementations§
Source§impl AsyncConnectionBuilder
impl AsyncConnectionBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create an AsyncConnectionBuilder
with default settings.
Sourcepub async fn open<P>(&self, path: P) -> Result<AsyncConnection, Error>
pub async fn open<P>(&self, path: P) -> Result<AsyncConnection, Error>
Open the connection.
Sourcepub fn blocking_open<P>(&self, path: P) -> Result<AsyncConnection, Error>
pub fn blocking_open<P>(&self, path: P) -> Result<AsyncConnection, Error>
Open the connection from a blocking context.
Trait Implementations§
Source§impl Debug for AsyncConnectionBuilder
impl Debug for AsyncConnectionBuilder
Auto Trait Implementations§
impl Freeze for AsyncConnectionBuilder
impl RefUnwindSafe for AsyncConnectionBuilder
impl Send for AsyncConnectionBuilder
impl Sync for AsyncConnectionBuilder
impl Unpin for AsyncConnectionBuilder
impl UnwindSafe for AsyncConnectionBuilder
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