Skip to main content

Module storage

Module storage 

Source
Expand description

Result storage trait for test results.

Enables dependency injection for different storage backends.

Structs§

FileStorage
File-based storage implementation using history module.
MockStorage
In-memory storage for testing - does not persist to disk.

Traits§

HistoryStorage
Combined trait for storage that supports both saving and loading. Provides cleaner dependency injection than separate traits.
LoadHistory
Trait for reading historic results (optional). Not all storage backends need to implement this – e.g. a transient in‑memory store can choose to omit history support.
ResultSink
Minimal trait for persisting a speed‑test report.
SaveResult
Trait for persisting a single test result. Implementations may be file‑based, cloud‑based, etc.