[][src]Struct exocore_chain::engine::Engine

pub struct Engine<T, CS, PS> where
    T: TransportServiceHandle,
    CS: ChainStore,
    PS: PendingStore
{ /* fields omitted */ }

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 commited 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
[src]

pub fn new(
    config: EngineConfig,
    clock: Clock,
    transport: T,
    chain_store: CS,
    pending_store: PS,
    cell: Cell
) -> Engine<T, CS, PS>
[src]

pub fn get_handle(&mut self) -> EngineHandle<CS, PS>[src]

pub async fn run(self) -> Result<(), EngineError>[src]

Auto Trait Implementations

impl<T, CS, PS> !RefUnwindSafe for Engine<T, CS, PS>[src]

impl<T, CS, PS> Send for Engine<T, CS, PS>[src]

impl<T, CS, PS> Sync for Engine<T, CS, PS> where
    T: Sync
[src]

impl<T, CS, PS> Unpin for Engine<T, CS, PS>[src]

impl<T, CS, PS> !UnwindSafe for Engine<T, CS, PS>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,