Skip to main content

MinimalEngine

Type Alias MinimalEngine 

Source
pub type MinimalEngine<ES> = EngineContext<ES>;
Expand description

An EngineContext with all optional subsystems disabled.

Uses NoopSnapshotStore and, in testing-enabled builds, Noop implementations for outbox, deadline, and process registry. Suitable for tests and minimal deployments where only a durable event store is required.

All five type parameters are inferred from context when used with EngineBuilder:

// Only available in test / testing-feature builds:
use mako_engine::builder::{EngineBuilder, MinimalEngine};
use mako_engine::event_store::InMemoryEventStore;

let ctx: MinimalEngine<InMemoryEventStore> = EngineBuilder::new()
    .with_event_store(InMemoryEventStore::new())
    .build();

Aliased Type§

pub struct MinimalEngine<ES> {
    pub dead_letter_sink: Arc<dyn DeadLetterSink>,
    /* private fields */
}

Fields§

§dead_letter_sink: Arc<dyn DeadLetterSink>

Dead-letter sink for unroutable or unprocessable inbound messages.

Stored as Arc<dyn DeadLetterSink> so callers can share it across tasks without an extra type parameter on EngineContext.