pub struct MmapStorage { /* private fields */ }
Expand description

A backend that uses an nonymous mmap.

The Backend automatically creates bigger map on demand using following strategy:

  • If new data size allows, multiply size by 2.
  • Otherwise new data size is used.

Note that mmap is never shrink back.

Use Backend methods to read and write into it.

Implementations

Creates new storage with 1024 bytes.

Creates new storage with custom size.

Trait Implementations

Read the all data from the backend.
Write the whole slice to the backend.
Formats the value using the given formatter. Read more

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.