[−][src]Struct heed::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]
&self,
name: Option<&str>
) -> Result<Option<Database<KC, DC>>> where
KC: 'static,
DC: 'static,
pub fn open_poly_database(
&self,
name: Option<&str>
) -> Result<Option<PolyDatabase>>
[src]
&self,
name: Option<&str>
) -> Result<Option<PolyDatabase>>
pub fn create_database<KC, DC>(
&self,
name: Option<&str>
) -> Result<Database<KC, DC>> where
KC: 'static,
DC: 'static,
[src]
&self,
name: Option<&str>
) -> Result<Database<KC, DC>> where
KC: 'static,
DC: 'static,
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]
&self,
name: Option<&str>,
parent_wtxn: &mut RwTxn<'_, '_>
) -> Result<Database<KC, DC>> where
KC: 'static,
DC: 'static,
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]
&self,
name: Option<&str>,
parent_wtxn: &mut RwTxn<'_, '_>
) -> Result<PolyDatabase>
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]
&'e self,
parent: &'p mut RwTxn<'_, '_, T>
) -> Result<RwTxn<'e, 'p, T>>
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]
&self,
path: P,
option: CompactionOption
) -> Result<File>
pub unsafe fn copy_to_fd(
&self,
fd: mdb_filehandle_t,
option: CompactionOption
) -> Result<()>
[src]
&self,
fd: mdb_filehandle_t,
option: CompactionOption
) -> Result<()>
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 Env
s you have, env closing are triggered
when all references are dropped, the last one will eventually close the environment.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Env
[src]
impl Send for Env
[src]
impl Sync for Env
[src]
impl Unpin for Env
[src]
impl UnwindSafe for Env
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,