[−][src]Struct transact::database::lmdb::LmdbDatabase
Methods
impl LmdbDatabase
[src]
pub fn new<S: AsRef<str>>(
ctx: LmdbContext,
indexes: &[S]
) -> Result<Self, DatabaseError>
[src]
ctx: LmdbContext,
indexes: &[S]
) -> Result<Self, DatabaseError>
pub fn reader(&self) -> Result<LmdbDatabaseReader, DatabaseError>
[src]
pub fn writer(&self) -> Result<LmdbDatabaseWriter, DatabaseError>
[src]
Trait Implementations
impl Database for LmdbDatabase
[src]
fn get_reader<'a>(
&'a self
) -> Result<Box<dyn DatabaseReader + 'a>, DatabaseError>
[src]
&'a self
) -> Result<Box<dyn DatabaseReader + 'a>, DatabaseError>
fn get_writer<'a>(
&'a self
) -> Result<Box<dyn DatabaseWriter + 'a>, DatabaseError>
[src]
&'a self
) -> Result<Box<dyn DatabaseWriter + 'a>, DatabaseError>
fn clone_box(&self) -> Box<dyn Database>
[src]
impl Clone for LmdbDatabase
[src]
fn clone(&self) -> LmdbDatabase
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl Send for LmdbDatabase
impl Unpin for LmdbDatabase
impl Sync for LmdbDatabase
impl !UnwindSafe for LmdbDatabase
impl !RefUnwindSafe for LmdbDatabase
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> SafeBorrow<T> for T where
T: ?Sized,
T: ?Sized,
fn borrow_replacement(ptr: &T) -> &T
impl<'a, T> DefaultFeatures<'a> for T where
T: 'a + Send + Sync + Clone,
T: 'a + Send + Sync + Clone,
fn clone_boxed(&self) -> Box<dyn DefaultFeatures<'a> + 'a>
fn self_address_mut(&mut self) -> *mut ()
impl<'a, T> NonSyncFeatures<'a> for T where
T: 'a + Clone,
T: 'a + Clone,
fn clone_boxed(&self) -> Box<dyn NonSyncFeatures<'a> + 'a>
fn self_address_mut(&mut self) -> *mut ()
impl<T> Same<T> for T
type Output = T
Should always be Self