Struct rustdb::stg::SimpleFileStorage[][src]

pub struct SimpleFileStorage {
    pub file: Mutex<File>,
}
Expand description

Simple implementation of Storage using std::fs::File.

Fields

file: Mutex<File>

Implementations

Trait Implementations

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).

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.