Skip to main content

Module instance

Module instance 

Source
Expand description

The instance module provides concrete implementations of the Hook trait and related utilities.

This includes HookDelegate for managing multiple hooks, SharedHook for thread-safe hook access, InteractiveStepHook for debugging, and TraceHook for logging simulation events.

Structs§

InteractiveStepHook
A hook that pauses the simulation at each tick to allow for interactive inspection.
SharedHook
A wrapper that allows a hook to be shared across multiple components via Arc.
TraceHook
A Hook that traces the simulation state. If the verbose_debug feature is enabled, it also outputs the model’s detailed state using the Debug trait.

Traits§

ModelSummary
A trait for providing a concise summary representation of a model.