InMemoryMeshStateStore

In-memory implementation of MeshStateStore for testing.

Does not survive process restarts. Use only for tests and development. Production apps should implement MeshStateStore with durable storage.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open suspend override fun clearAll(): Result<Unit>

Clear all persisted mesh state.

Link copied to clipboard
open suspend override fun loadNetworkState(): Result<MeshNetworkState?>

Load the last saved network state.

Link copied to clipboard
open suspend override fun saveNetworkState(state: MeshNetworkState): Result<Unit>

Atomically save the complete network state.