pub struct SharedPagedData {
    pub file: RwLock<CompactFile>,
    pub sp_size: usize,
    pub ep_size: usize,
    pub stash: Mutex<Stash>,
}
Expand description

Allows logical database pages to be shared to allow concurrent readers.

Fields

file: RwLock<CompactFile>

Underlying file.

sp_size: usize

Starter page size.

ep_size: usize

Extension page size.

stash: Mutex<Stash>

Stash of pages.

Implementations

Construct SharedPageData based on specified underlying storage.

Calculate the maximum size of a logical page. This value is stored in the Database struct.

Trim cache.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.