Overview
TheMessage enum represents messages received from the Tashi Vertex consensus network. Messages can be either events that have reached consensus or sync points that indicate network management decisions.
Variants
Event
Contains anEvent that has reached consensus in the network.
SyncPoint
Contains aSyncPoint representing a consensus decision about network management.
Usage
Messages are received through theEngine::recv_message() method:
The
Message::recv() method is internal and not exposed in the public API. Use Engine::recv_message() instead to receive messages.Pattern matching
SinceMessage is an enum, you can use pattern matching to handle different message types: