pub struct TransactionalTree<'a, K, V>{ /* private fields */ }
Implementations§
Source§impl<'a, K: Key, V: Value> TransactionalTree<'a, K, V>
impl<'a, K: Key, V: Value> TransactionalTree<'a, K, V>
pub fn insert( &self, key: &K, value: &V, ) -> Result<Option<V>, UnabortableTransactionError>
pub fn remove(&self, key: &K) -> Result<Option<V>, UnabortableTransactionError>
pub fn get(&self, key: &K) -> Result<Option<V>, UnabortableTransactionError>
pub fn apply_batch( &self, batch: &Batch<K, V>, ) -> Result<(), UnabortableTransactionError>
pub fn flush(&self)
pub fn generate_id(&self) -> Result<u64>
Auto Trait Implementations§
impl<'a, K, V> Freeze for TransactionalTree<'a, K, V>
impl<'a, K, V> !RefUnwindSafe for TransactionalTree<'a, K, V>
impl<'a, K, V> !Send for TransactionalTree<'a, K, V>
impl<'a, K, V> !Sync for TransactionalTree<'a, K, V>
impl<'a, K, V> Unpin for TransactionalTree<'a, K, V>
impl<'a, K, V> !UnwindSafe for TransactionalTree<'a, K, V>
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