pub enum Environment {
Volatile(VolatileEnvironment),
Persistent(LmdbEnvironment),
}
Variants§
Volatile(VolatileEnvironment)
Persistent(LmdbEnvironment)
Implementations§
Source§impl Environment
impl Environment
pub fn open_database(&self, name: String) -> Database<'_>
pub fn open_database_with_flags( &self, name: String, flags: DatabaseFlags, ) -> Database<'_>
pub fn close(self)
pub fn drop_database(self) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Environment
impl !RefUnwindSafe for Environment
impl Send for Environment
impl Sync for Environment
impl Unpin for Environment
impl UnwindSafe for Environment
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