Crate nimble_participant

Source
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 around u8.
  • Serialization/Deserialization: Supports binary serialization and deserialization through the flood_rs crate.
  • 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§

ParticipantId
Represents a unique participant in a simulation.