Skip to main content

Module auto_export

Module auto_export 

Source
Expand description

Auto-export configuration (output path, formats, signal policy, flush interval). Auto-export configuration for memscope-rs.

Defines the configuration types that control automatic export of tracking data on program exit (normal return, panic, Ctrl-C, SIGTERM) and optional periodic background flushing for long-running services.

This is module 1 of the 4-module auto-export feature. It is intentionally dependency-light: only std and serde (both already in the crate graph) are used. Every type here is plain data with no I/O or global state, so the module can be unit-tested in isolation and downstream modules (signal installation, exit hooks, background flusher) can build on these contracts.

Structs§

AutoExportConfig
Configuration for the automatic export subsystem.
ExportFormatSet
Bitflags-style set of export formats. Uses a raw u8 to avoid adding the bitflags crate as a dependency.
MemScopeConfig
Top-level configuration for memscope_rs::start_with.

Enums§

SignalPolicy
Which signals trigger an automatic export before termination.