kvs 0.0.6

Embedded Key-Value Store
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::Address;

pub mod paged;
pub mod ram;
pub mod spi;

pub trait StoreAdapter {
    type Error;

    fn read(&mut self, addr: Address, buf: &mut [u8]) -> Result<(), Self::Error>;
    fn write(&mut self, addr: Address, data: &[u8]) -> Result<(), Self::Error>;
    fn max_address(&self) -> Address;
}