pub struct Connection { /* private fields */ }Expand description
A route-scoped application driver. Backend handles remain private.
Implementations§
Source§impl Connection
impl Connection
pub fn open(route: DatastoreRoute) -> Result<Self, DactylError>
pub fn from_env() -> Result<Self, DactylError>
pub fn datastore(&self) -> Datastore
pub fn route(&self) -> &DatastoreRoute
Auto Trait Implementations§
impl !RefUnwindSafe for Connection
impl !Send for Connection
impl !Sync for Connection
impl !UnwindSafe for Connection
impl Freeze for Connection
impl Unpin for Connection
impl UnsafeUnpin for Connection
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