Skip to main content

Module contiguous

Module contiguous 

Source
Expand description

Contiguous journals with position-based access.

This module provides position-based journal implementations where items are stored contiguously and can be accessed by their position (0-indexed). Both fixed-size and variable-size item journals are supported.

§Ownership

Mutating methods take the journal by value and return it on success. If a mutating method returns an error, or its future is dropped before it finishes, the journal is gone: state that was not yet durable is discarded, but everything already on disk stays recoverable.

Modules§

fixed
An append-only log for storing fixed length items on disk.
variable
Position-based journal for variable-length items.

Enums§

Many
Items to append via Mutable::append_many.

Traits§

Contiguous
A read-only, position-based view of a contiguous journal.
Mutable
A Contiguous journal that supports appending, rewinding, and pruning.