Skip to main content

Module fault_config

Module fault_config 

Source
Expand description

Fault configuration DSL — declarative fault injection rules.

Users describe fault injection scenarios in a structured config that can be serialized to/from YAML, TOML, or JSON. The FaultConfig is used by all layers (SDK traits, syscall interceptor, WASM sandbox) to decide when and how to inject faults.

Structs§

AllocFaultConfig
Memory allocator fault injection configuration.
ClockFaultConfig
Clock fault injection configuration.
ConfigError
A validation error in a fault configuration.
FaultConfig
Top-level fault configuration.
FsFaultConfig
Filesystem fault injection configuration.
FsFaultRule
A single filesystem fault rule.
NetworkFaultConfig
Network fault injection configuration (for local loopback interception).
NetworkFaultRule
A single network fault rule.
ProcessFaultConfig
Subprocess fault injection configuration.
ProcessFaultRule
A single subprocess fault rule.
ThreadSchedulingConfig
Thread scheduling configuration for deterministic thread interleaving.

Enums§

FsError
Filesystem error to inject.
FsOp
Filesystem operation to target.
NetworkFault
Types of network faults.
ProcessFault
Types of subprocess faults.
SchedulingStrategy
Strategy for choosing which thread to schedule next.