[][src]Struct sled_extensions::structured::TransactionalTree

pub struct TransactionalTree<'a, V, E>(_, _, _);

A transaction that will be applied atomically to the Tree.

Methods

impl<'a, V, E> StructuredTransactionalTree<'a, V, E> where
    E: Encoding<V>, 
[src]

pub fn insert<K>(
    &self,
    key: K,
    value: V
) -> ConflictableTransactionResult<Result<Option<V>>> where
    IVec: From<K>,
    K: AsRef<[u8]>, 
[src]

Set a key to a new value

pub fn remove<K>(
    &self,
    key: K
) -> ConflictableTransactionResult<Result<Option<V>>> where
    IVec: From<K>,
    K: AsRef<[u8]>, 
[src]

Remove a key

pub fn get<K>(&self, key: K) -> ConflictableTransactionResult<Result<Option<V>>> where
    K: AsRef<[u8]>, 
[src]

Get the value associated with a key

pub fn apply_batch(
    &self,
    batch: StructuredBatch<V, E>
) -> ConflictableTransactionResult<()>
[src]

Atomically apply multiple inserts and removals.

Trait Implementations

impl<'a, V: Clone, E: Clone> Clone for StructuredTransactionalTree<'a, V, E>[src]

Auto Trait Implementations

impl<'a, V, E> !Send for StructuredTransactionalTree<'a, V, E>

impl<'a, V, E> !Sync for StructuredTransactionalTree<'a, V, E>

impl<'a, V, E> Unpin for StructuredTransactionalTree<'a, V, E> where
    E: Unpin,
    V: Unpin

impl<'a, V, E> !UnwindSafe for StructuredTransactionalTree<'a, V, E>

impl<'a, V, E> !RefUnwindSafe for StructuredTransactionalTree<'a, V, E>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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