Module dev_tool

Module dev_tool 

Source
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§

AuthToken
ClientId
ContractDistribution
Information about how a contract is distributed across the network.
ContractStore
Handle contract blob storage on the file system.
ConvergedContract
A contract that has converged (all replicas have the same state).
ConvergenceResult
Result of a convergence check.
DelegateStore
DivergedContract
A contract that has diverged (replicas have different states).
EventChain
A stream of events for simulation testing.
EventSummary
Summary of a network event for deterministic comparison.
Executor
InitPeerNode
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]
MemoryEventsGen
NetworkEventGenerator
NetworkPeer
NetworkStats
Statistics for fault injection effects.
NodeConfig
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.
NodeLabel
OpenRequest
OperationStats
Statistics for a basic operation type (Get, Subscribe).
OperationSummary
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.
PutOperationStats
Statistics for Put operations (includes broadcast tracking).
RequestId
Request correlation ID for end-to-end tracing
RunningNode
Information about a running node, used for crash/restart operations.
Runtime
SecretsStore
SimNetwork
A simulated in-memory network topology.
StateStore
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.
TurmoilConfig
Configuration for a Turmoil-based deterministic simulation.
UpdateOperationStats
Statistics for Update operations (includes broadcast tracking).

Enums§

OperationMode
PeerMessage
PeerStatus

Traits§

ClientEventsProxy

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
TurmoilResult
Result type for Turmoil simulations