Trait littlefs::Storage

source ·
pub trait Storage {
    fn read(&self, off: usize, buf: &mut [u8]) -> Result<usize, FsError>;
    fn write(&mut self, off: usize, data: &[u8]) -> Result<usize, FsError>;
    fn erase(&mut self, off: usize, len: usize) -> Result<usize, FsError>;
}
Expand description

Definition of storage interface required by the filesystem.

Required Methods§

Read data from the storage device.

Write data to the storage device.

Erase data from the storage device.

Implementors§