Struct exocore_chain::engine::Engine [−][src]
pub struct Engine<T, CS, PS> where
T: TransportServiceHandle,
CS: ChainStore,
PS: PendingStore, { /* fields omitted */ }
Expand description
The chain engine manages storage and replication of data among the nodes of the cell.
It contains 2 stores:
- Pending store: temporary store in which operations are stored until they get committed to chain
- Chain store: persistent store using a block-chain like data structure
Implementations
impl<T, CS, PS> Engine<T, CS, PS> where
T: TransportServiceHandle,
CS: ChainStore,
PS: PendingStore,
impl<T, CS, PS> Engine<T, CS, PS> where
T: TransportServiceHandle,
CS: ChainStore,
PS: PendingStore,
pub fn new(
config: EngineConfig,
clock: Clock,
transport: T,
chain_store: CS,
pending_store: PS,
cell: Cell
) -> Engine<T, CS, PS>
Auto Trait Implementations
impl<T, CS, PS> !RefUnwindSafe for Engine<T, CS, PS>
impl<T, CS, PS> !UnwindSafe for Engine<T, CS, PS>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more