Struct encrypted_sled::Tree [−][src]
pub struct Tree<E> { /* fields omitted */ }Implementations
pub fn insert<K, V>(&self, key: K, value: V) -> Result<Option<IVec>> where
K: AsRef<[u8]>,
V: Into<IVec>,
pub fn transaction<F, A, Error>(&self, f: F) -> TransactionResult<A, Error> where
F: Fn(&TransactionalTree<E>) -> ConflictableTransactionResult<A, Error>,
pub fn watch_prefix<P: AsRef<[u8]>>(&self, prefix: P) -> Subscriber<E>ⓘNotable traits for Subscriber<E>impl<E> Iterator for Subscriber<E> where
E: Encryption, type Item = Event;impl<E> Future for Subscriber<E> where
E: Encryption, type Output = Option<Event>;
Notable traits for Subscriber<E>
impl<E> Iterator for Subscriber<E> where
E: Encryption, type Item = Event;impl<E> Future for Subscriber<E> where
E: Encryption, type Output = Option<Event>;pub fn compare_and_swap<K, OV, NV>(
&self,
key: K,
old: Option<OV>,
new: Option<NV>
) -> Result<Result<(), CompareAndSwapError>> where
K: AsRef<[u8]>,
OV: AsRef<[u8]>,
NV: Into<IVec>,
pub fn update_and_fetch<K, V, F>(&self, key: K, f: F) -> Result<Option<IVec>> where
K: AsRef<[u8]>,
F: FnMut(Option<IVec>) -> Option<V>,
V: Into<IVec>,
pub fn fetch_and_update<K, V, F>(&self, key: K, f: F) -> Result<Option<IVec>> where
K: AsRef<[u8]>,
F: FnMut(Option<IVec>) -> Option<V>,
V: Into<IVec>,
Trait Implementations
Auto Trait Implementations
impl<E> !RefUnwindSafe for Tree<E>
impl<E> !UnwindSafe for Tree<E>
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self