[−][src]Struct transact::database::lmdb::LmdbDatabaseWriter
Trait Implementations
impl<'a> DatabaseReader for LmdbDatabaseWriter<'a>
[src]
fn get(&self, key: &[u8]) -> Option<Vec<u8>>
[src]
fn index_get(
&self,
index: &str,
key: &[u8]
) -> Result<Option<Vec<u8>>, DatabaseError>
[src]
&self,
index: &str,
key: &[u8]
) -> Result<Option<Vec<u8>>, DatabaseError>
fn cursor(&self) -> Result<DatabaseCursor, DatabaseError>
[src]
fn index_cursor(&self, index: &str) -> Result<DatabaseCursor, DatabaseError>
[src]
fn count(&self) -> Result<usize, DatabaseError>
[src]
fn index_count(&self, index: &str) -> Result<usize, DatabaseError>
[src]
impl<'a> DatabaseWriter for LmdbDatabaseWriter<'a>
[src]
fn put(&mut self, key: &[u8], value: &[u8]) -> Result<(), DatabaseError>
[src]
Writes the given key/value pair. If the key/value pair already exists, it will return a DatabaseError::DuplicateEntry.
fn overwrite(&mut self, key: &[u8], value: &[u8]) -> Result<(), DatabaseError>
[src]
fn delete(&mut self, key: &[u8]) -> Result<(), DatabaseError>
[src]
fn index_put(
&mut self,
index: &str,
key: &[u8],
value: &[u8]
) -> Result<(), DatabaseError>
[src]
&mut self,
index: &str,
key: &[u8],
value: &[u8]
) -> Result<(), DatabaseError>
fn index_delete(&mut self, index: &str, key: &[u8]) -> Result<(), DatabaseError>
[src]
fn commit(self: Box<Self>) -> Result<(), DatabaseError>
[src]
fn as_reader(&self) -> &dyn DatabaseReader
[src]
Auto Trait Implementations
impl<'a> !Send for LmdbDatabaseWriter<'a>
impl<'a> !Sync for LmdbDatabaseWriter<'a>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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<T> Same<T> for T
type Output = T
Should always be Self