[][src]Trait blockchain::traits::Backend

pub trait Backend {
type Block: Block;
type State;
type Auxiliary: Auxiliary<Self::Block>;
type Error: Error + 'static;
    fn commit(
        &mut self,
        operation: Operation<Self::Block, Self::State, Self::Auxiliary>
    ) -> Result<(), Self::Error>; }

Commit-able backend for a block context.

Associated Types

type Block: Block

Block type

type State

State type

type Auxiliary: Auxiliary<Self::Block>

Auxiliary type

type Error: Error + 'static

Error type

Loading content...

Required methods

fn commit(
    &mut self,
    operation: Operation<Self::Block, Self::State, Self::Auxiliary>
) -> Result<(), Self::Error>

Commit operation.

Loading content...

Implementors

impl<B: Block, A: Auxiliary<B>, S: Clone> Backend for MemoryBackend<B, A, S>[src]

type Block = B

type State = S

type Auxiliary = A

type Error = Error

Loading content...