pub struct Db(/* private fields */);
Implementations§
source§impl Db
impl Db
pub fn engine(&self) -> String
pub fn open_tree<S: AsRef<str>>(&self, name: S) -> Result<Tree>
pub fn list_trees(&self) -> Result<Vec<String>>
pub fn transaction<R, E, F>(&self, fun: F) -> TxResult<R, E>
pub fn snapshot(&self, path: &PathBuf) -> Result<()>
pub fn import(&self, other: &Db) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Db
impl !RefUnwindSafe for Db
impl Send for Db
impl Sync for Db
impl Unpin for Db
impl !UnwindSafe for Db
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