Module tinychain::chain[][src]

Expand description

A Chain responsible for recovering a State from a failed transaction.

Structs

BlockChain

A Chain which stores every mutation of its Subject in a series of ChainBlocks

ChainBlock

A single filesystem block belonging to a Chain.

ChainView

A view of a Chain within a single Transaction, used for serialization.

ChainVisitor

A de::Visitor for deserializing a Chain.

SyncChain

A super::Chain which keeps only the data needed to recover the state of its subject in the event of a transaction failure.

Enums

Chain

A data structure responsible for maintaining the transactional integrity of its Subject.

ChainType

The type of a Chain.

ChainViewData

A helper struct for ChainView

Schema

The schema of a Chain, used when constructing a new Chain or loading a Chain from disk.

Subject

The state whose transactional integrity is protected by a Chain.

Constants

EXT

The file extension of a directory of ChainBlocks on disk.

SUBJECT

The name of the file containing a Chain’s Subject’s data.

Traits

ChainInstance

Trait defining methods common to any instance of a Chain, such as a SyncChain.

Functions

load

Load a Chain from disk.