Struct oasis_core_runtime::storage::mkvs::Tree
source · pub struct Tree { /* private fields */ }
Expand description
A patricia tree-based MKVS implementation.
Implementations§
Trait Implementations§
source§impl FallibleMKVS for Tree
impl FallibleMKVS for Tree
source§fn get_proof(&self, key: &[u8]) -> Result<Option<Proof>>
fn get_proof(&self, key: &[u8]) -> Result<Option<Proof>>
Fetch proof for entry with given key.
source§fn cache_contains_key(&self, key: &[u8]) -> bool
fn cache_contains_key(&self, key: &[u8]) -> bool
Check if the local MKVS cache contains the given key. Read more
source§fn insert(&mut self, key: &[u8], value: &[u8]) -> Result<Option<Vec<u8>>>
fn insert(&mut self, key: &[u8], value: &[u8]) -> Result<Option<Vec<u8>>>
Update entry with given key. Read more
source§fn remove(&mut self, key: &[u8]) -> Result<Option<Vec<u8>>>
fn remove(&mut self, key: &[u8]) -> Result<Option<Vec<u8>>>
Remove entry with given key, returning the value at the key if the key was previously
in the database.
impl Send for Tree
Auto Trait Implementations§
impl !Freeze for Tree
impl !RefUnwindSafe for Tree
impl !Sync for Tree
impl Unpin for Tree
impl !UnwindSafe for Tree
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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