[−][src]Struct sled_extensions::expiring::TransactionalTree
A transaction that will be applied atomically to the Tree.
Methods
impl<'a, V, E, F> ExpiringTransactionalTree<'a, V, E, F> where
E: Encoding<HashSet<IVec>> + Encoding<DateTime<Utc>> + 'static,
F: Encoding<V> + 'static, [src]
E: Encoding<HashSet<IVec>> + Encoding<DateTime<Utc>> + 'static,
F: Encoding<V> + 'static,
pub fn insert<K>(
&self,
key: K,
value: V
) -> TransactionResult<Result<Option<V>>> where
IVec: From<K>,
K: AsRef<[u8]>, [src]
&self,
key: K,
value: V
) -> TransactionResult<Result<Option<V>>> where
IVec: From<K>,
K: AsRef<[u8]>,
Set a key to a new value
pub fn remove<K>(&self, key: K) -> TransactionResult<Result<Option<V>>> where
IVec: From<K>,
K: AsRef<[u8]>, [src]
IVec: From<K>,
K: AsRef<[u8]>,
Remove a key
pub fn get<K>(&self, key: K) -> TransactionResult<Result<Option<V>>> where
K: AsRef<[u8]>, [src]
K: AsRef<[u8]>,
Get the value associated with a key
pub fn apply_batch(
&self,
batch: ExpiringBatch<V, F>
) -> TransactionResult<Result<()>>[src]
&self,
batch: ExpiringBatch<V, F>
) -> TransactionResult<Result<()>>
Atomically apply multiple inserts and removals.
Trait Implementations
impl<'a, V: Clone, E: Clone, F: Clone> Clone for ExpiringTransactionalTree<'a, V, E, F>[src]
fn clone(&self) -> ExpiringTransactionalTree<'a, V, E, F>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Auto Trait Implementations
impl<'a, V, E, F> !Send for ExpiringTransactionalTree<'a, V, E, F>
impl<'a, V, E, F> Unpin for ExpiringTransactionalTree<'a, V, E, F> where
F: Unpin,
V: Unpin,
F: Unpin,
V: Unpin,
impl<'a, V, E, F> !Sync for ExpiringTransactionalTree<'a, V, E, F>
impl<'a, V, E, F> !UnwindSafe for ExpiringTransactionalTree<'a, V, E, F>
impl<'a, V, E, F> !RefUnwindSafe for ExpiringTransactionalTree<'a, V, E, F>
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,