pub struct SimpleFileStorage {
pub file: Mutex<File>,
}
Expand description
Simple implementation of Storage using std::fs::File.
Get the current size of the underlying storage.
Read from the underlying storage.
Write to the underlying storage.
Finish write transaction, size is new size of underlying storage.
Read multiple ranges. List is (file offset, data offset, data size).
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.