pub struct LedgerKV {
pub file_path: PathBuf,
/* private fields */
}
Expand description
Struct representing the LedgerKV.
Fields§
§file_path: PathBuf
Implementations§
source§impl LedgerKV
impl LedgerKV
pub fn upsert( &mut self, label: EntryLabel, key: Vec<u8>, value: Vec<u8> ) -> Result<()>
pub fn delete(&mut self, label: EntryLabel, key: Vec<u8>) -> Result<()>
pub fn refresh_ledger(self) -> Self
pub fn iter(&self, label: Option<EntryLabel>) -> impl Iterator<Item = &KvEntry>
pub fn iter_raw(&self) -> impl Iterator<Item = KvEntry> + '_
Auto Trait Implementations§
impl !RefUnwindSafe for LedgerKV
impl Send for LedgerKV
impl !Sync for LedgerKV
impl Unpin for LedgerKV
impl UnwindSafe for LedgerKV
Blanket Implementations§
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