[][src]Struct heed::Env

pub struct Env(_);

Implementations

impl Env[src]

pub fn open_database<KC, DC>(
    &self,
    name: Option<&str>
) -> Result<Option<Database<KC, DC>>> where
    KC: 'static,
    DC: 'static, 
[src]

pub fn open_poly_database(
    &self,
    name: Option<&str>
) -> Result<Option<PolyDatabase>>
[src]

pub fn create_database<KC, DC>(
    &self,
    name: Option<&str>
) -> Result<Database<KC, DC>> where
    KC: 'static,
    DC: 'static, 
[src]

pub fn create_database_with_txn<KC, DC>(
    &self,
    name: Option<&str>,
    parent_wtxn: &mut RwTxn<'_, '_>
) -> Result<Database<KC, DC>> where
    KC: 'static,
    DC: 'static, 
[src]

pub fn create_poly_database(&self, name: Option<&str>) -> Result<PolyDatabase>[src]

pub fn create_poly_database_with_txn(
    &self,
    name: Option<&str>,
    parent_wtxn: &mut RwTxn<'_, '_>
) -> Result<PolyDatabase>
[src]

pub fn write_txn(&self) -> Result<RwTxn<'_, '_>>[src]

pub fn typed_write_txn<T>(&self) -> Result<RwTxn<'_, '_, T>>[src]

pub fn nested_write_txn<'e, 'p: 'e, T>(
    &'e self,
    parent: &'p mut RwTxn<'_, '_, T>
) -> Result<RwTxn<'e, 'p, T>>
[src]

pub fn read_txn(&self) -> Result<RoTxn<'_>>[src]

pub fn typed_read_txn<T>(&self) -> Result<RoTxn<'_, T>>[src]

pub fn copy_to_path<P: AsRef<Path>>(
    &self,
    path: P,
    option: CompactionOption
) -> Result<File>
[src]

pub unsafe fn copy_to_fd(
    &self,
    fd: mdb_filehandle_t,
    option: CompactionOption
) -> Result<()>
[src]

pub fn force_sync(&self) -> Result<()>[src]

pub fn path(&self) -> &Path[src]

Returns the canonicalized path where this env lives.

pub fn prepare_for_closing(self) -> EnvClosingEvent[src]

Returns an EnvClosingEvent that can be used to wait for the closing event, multiple threads can wait on this event.

Make sure that you drop all the copies of Envs you have, env closing are triggered when all references are dropped, the last one will eventually close the environment.

Trait Implementations

impl Clone for Env[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.