Type Alias Writer

Source
pub type Writer<'t> = Writer<SafeModeRwTransaction<'t>>;

Aliased Type§

struct Writer<'t>(/* private fields */);

Implementations

§

impl<T> Writer<T>
where T: BackendRwTransaction,

pub fn commit(self) -> Result<(), StoreError>

pub fn abort(self)

Trait Implementations

§

impl<'r, T> Readable<'r> for Writer<T>
where T: BackendRwCursorTransaction<'r>,

§

type Database = <T as BackendRwTransaction>::Database

§

type RoCursor = <T as BackendRwCursorTransaction<'r>>::RoCursor

§

fn get<K>( &'r self, db: &<T as BackendRwTransaction>::Database, k: &K, ) -> Result<Option<Value<'r>>, StoreError>
where K: AsRef<[u8]>,

§

fn open_ro_cursor( &'r self, db: &<T as BackendRwTransaction>::Database, ) -> Result<<T as BackendRwCursorTransaction<'r>>::RoCursor, StoreError>