Trait oasis_core_runtime::storage::mkvs::Iterator
source · pub trait Iterator: Iterator<Item = (Vec<u8>, Vec<u8>)> {
// Required methods
fn set_prefetch(&mut self, prefetch: usize);
fn is_valid(&self) -> bool;
fn error(&self) -> &Option<Error>;
fn rewind(&mut self);
fn seek(&mut self, key: &[u8]);
fn get_key(&self) -> &Option<Key>;
fn get_value(&self) -> &Option<Vec<u8>>;
fn next(&mut self);
}
Expand description
An MKVS iterator.
Required Methods§
sourcefn set_prefetch(&mut self, prefetch: usize)
fn set_prefetch(&mut self, prefetch: usize)
Sets the number of next elements to prefetch.