Crate ralf [] [src]

Ralf Distributed state machine with raft

Structs

Action

Action data type, contain a string identifier and raw bytes

LoggingReducer

LoggingReducer Print the category of each action received by the reducer id Leave the state unchanged

PureReducer

Wrapper to use a pure function as a reducer

State

State is a wrapper around your state, allowing querying and modification

StateMachine

State machine with a state of type T

Traits

Reducer

core logic trait, any structure that implement this trait can be used to manipulate state.