Trait rocksdb::WriteBatchIterator[][src]

pub trait WriteBatchIterator {
    fn put(&mut self, key: Box<[u8]>, value: Box<[u8]>);
fn delete(&mut self, key: Box<[u8]>); }

Receives the puts and deletes of a write batch.

The application must provide an implementation of this trait when iterating the operations within a WriteBatch

Required methods

fn put(&mut self, key: Box<[u8]>, value: Box<[u8]>)[src]

Called with a key and value that were put into the batch.

fn delete(&mut self, key: Box<[u8]>)[src]

Called with a key that was deleted from the batch.

Loading content...

Implementors

Loading content...