Trait parity_machine::Machine[][src]

pub trait Machine: for<'a> LocalizedMachine<'a> {
    type Header: Header;
    type LiveBlock: LiveBlock<Header = Self::Header>;
    type ExtendedHeader: Header;
    type EngineClient: ?Sized;
    type AuxiliaryRequest;
    type AncestryAction;
    type Error;
}

Generalization of types surrounding blockchain-suitable state machines.

Associated Types

The block header type.

The live block type.

Block header with metadata information.

A handle to a blockchain client for this machine.

A description of needed auxiliary data.

Actions taken on ancestry blocks when commiting a new block.

Errors which can occur when querying or interacting with the machine.

Implementors