pub trait Writable: Transaction {
    // Required method
    fn write(
        &mut self,
        handle: Self::Handle,
        key: &[u8],
        value: &[u8]
    ) -> Result<(), Self::Error>;
}
Expand description

A transaction with the capability to write to a given Handle.

Required Methods§

source

fn write( &mut self, handle: Self::Handle, key: &[u8], value: &[u8] ) -> Result<(), Self::Error>

Inserts a key-value pair into a given Transaction::Handle.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> Writable for RwTransaction<'a>

source§

fn write( &mut self, handle: Self::Handle, key: &[u8], value: &[u8] ) -> Result<(), Self::Error>

Implementors§