Module PocketMeshPeer.State

Represents the whole state of the library.

type t;

Internal representation of the library state. Use classify to pattern-match on its contents.

type taggedT =
| WaitingForDbAndIdentity(SignalChannel.t)
| HasIdentity(DbState.t, RuntimeState.t)

Simplified state of the library suitable for pattern-matching.

let classify: t => taggedT;

Converts opaque internal representation of the library state into a simplified variant type suitable for pattern-matching.