Expand description
Exports for the dev tool.
Re-exports§
pub use crate::config::Config;pub use transport::TransportKeypair;pub use transport::TransportPublicKey;pub use crate::simulation::FaultConfig;pub use crate::simulation::FaultConfigBuilder;pub use crate::simulation::Partition;pub use crate::simulation::SimulationRng;pub use crate::simulation::TimeSource;pub use crate::simulation::VirtualTime;pub use crate::simulation::WakeupId;pub use crate::test_utils::reset_global_node_index;pub use crate::transport::reset_nonce_counter;pub use crate::transport::StreamId;pub use flatbuffers;
Structs§
- Auth
Token - Client
Id - Contract
Distribution - Information about how a contract is distributed across the network.
- Contract
Store - Handle contract blob storage on the file system.
- Converged
Contract - A contract that has converged (all replicas have the same state).
- Convergence
Result - Result of a convergence check.
- Delegate
Store - Diverged
Contract - A contract that has diverged (replicas have different states).
- Event
Chain - A stream of events for simulation testing.
- Event
Summary - Summary of a network event for deterministic comparison.
- Executor
- Init
Peer Node - Gateway node to use for joining the network.
- Location
- An abstract location on the 1D ring, represented by a real number on the interal [0, 1]
- Memory
Events Gen - Network
Event Generator - Network
Peer - Network
Stats - Statistics for fault injection effects.
- Node
Config - When instancing a node you can either join an existing network or bootstrap a new network with a listener which will act as the initial provider. This initial peer will be listening at the provided port and assigned IP. If those are not free the instancing process will return an error.
- Node
Label - Open
Request - Operation
Stats - Statistics for a basic operation type (Get, Subscribe).
- Operation
Summary - Summary of operation completion status across the network.
- PeerId
- The identifier of a peer in the network is composed of its address and public key.
- PutOperation
Stats - Statistics for Put operations (includes broadcast tracking).
- Request
Id - Request correlation ID for end-to-end tracing
- Running
Node - Information about a running node, used for crash/restart operations.
- Runtime
- Secrets
Store - SimNetwork
- A simulated in-memory network topology.
- State
Store - StateStore wraps a persistent storage backend with an optional in-memory cache.
It is Clone when the underlying storage S is Clone (e.g., ReDb with Arc
). - Transaction
- An transaction is a unique, universal and efficient identifier for any roundtrip transaction as it is broadcasted around the Freenet network.
- Turmoil
Config - Configuration for a Turmoil-based deterministic simulation.
- Update
Operation Stats - Statistics for Update operations (includes broadcast tracking).
Enums§
Traits§
Functions§
- reset_
all_ simulation_ state - Reset all global simulation state for deterministic testing.
- reset_
channel_ id_ counter - Reset the channel ID counter to initial state. Used for deterministic simulation testing.
- reset_
event_ id_ counter - Reset the event ID counter to initial state. Used for deterministic simulation testing.
- run_
turmoil_ simulation - Run a deterministic simulation using Turmoil’s scheduler.
Type Aliases§
- Storage
- Turmoil
Result - Result type for Turmoil simulations