pub struct DbHandle { /* private fields */ }
Expand description
A handle to a database
It can be cached to avoid opening db on every access In the current state it is unsafe as other thread can ask to drop it.
Trait Implementations§
impl Copy for DbHandle
impl Send for DbHandle
impl Sync for DbHandle
Auto Trait Implementations§
impl Freeze for DbHandle
impl RefUnwindSafe for DbHandle
impl Unpin for DbHandle
impl UnwindSafe for DbHandle
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