Expand description
§nimble-participant
nimble-participant is a crate for managing participants in a deterministic simulation.
§Features ✨
ParticipantId: Provides a unique identifier for participants using a simple wrapper aroundu8.- Serialization/Deserialization: Supports binary serialization and deserialization through the
flood_rscrate. - Display Formatting: Offers a formatted, human-readable display for logging or printing participant identifiers.
§Usage 🚀
Add the following to your Cargo.toml:
[dependencies]
nimble-participant = "0.1"§Example:
use nimble_participant::ParticipantId;
let participant = ParticipantId(42);
println!("{}", participant); // Outputs: Participant(42)Structs§
- Participant
Id - Represents a unique participant in a simulation.