pub trait Readable: Transaction {
    // Required method
    fn read(
        &self,
        handle: Self::Handle,
        key: &[u8]
    ) -> Result<Option<Bytes>, Self::Error>;
}
Expand description

A transaction with the capability to read from a given Handle.

Required Methods§

source

fn read( &self, handle: Self::Handle, key: &[u8] ) -> Result<Option<Bytes>, Self::Error>

Returns the value from the corresponding key from a given Transaction::Handle.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'a> Readable for RoTransaction<'a>

source§

fn read( &self, handle: Self::Handle, key: &[u8] ) -> Result<Option<Bytes>, Self::Error>

source§

impl<'a> Readable for RwTransaction<'a>

source§

fn read( &self, handle: Self::Handle, key: &[u8] ) -> Result<Option<Bytes>, Self::Error>

Implementors§