Skip to main content

Module context

Module context 

Source
Expand description

Module for the inline DFIR runtime context and execution engine.

Provides Context (the lightweight operator context) and Dfir (the dataflow execution wrapper).

Structs§

Context
A lightweight context for inline codegen that avoids the overhead of the full scheduled graph (no tokio channels, no scheduler queues, no loop machinery).
Dfir
An executable DFIR dataflow, as created by dfir_syntax!. Provides the Self::run, Self::run_available, and Self::run_tick family of methods to execute the dataflow.

Traits§

TickClosure
Base trait of the tick closure traits: names the MetricsState typestate of the context the closure expects, so that Dfir<Tick> can be parameterized by the closure alone.
TickClosureAsync
A tick closure that can run a tick as a future. See TickClosure for the hierarchy.
TickClosureBoth
A tick closure that supports both the sync and the async runners. Implemented automatically for every type implementing both TickClosureSync and TickClosureAsync; see TickClosure for the hierarchy.
TickClosureSync
A tick closure that can run a tick synchronously. See TickClosure for the hierarchy.

Type Aliases§

DfirErased
A type-erased Dfir that supports both the sync and the async runners. Created via Dfir::into_erased. Prefer DfirErasedSync or DfirErasedAsync when only one is needed.
DfirErasedAsync
A type-erased Dfir that supports only the async runners (Dfir::run_tick, Dfir::run_available, Dfir::run). Created via Dfir::into_erased_async.
DfirErasedSync
A type-erased Dfir that supports only the sync runners (Dfir::run_tick_sync, Dfir::run_available_sync). Created via Dfir::into_erased_sync.