Expand description
Runtime state and operations for flow-based development networks.
This module provides the NetSim type which tracks the runtime state of a network,
including packet locations, epoch lifecycles, and provides actions to control packet flow.
All mutations to the network state go through NetSim::do_action which accepts a
NetAction and returns a NetActionResponse containing any events that occurred.
Structs§
- Epoch
- An execution instance of a node.
- NetSim
- The runtime state of a flow-based network.
- Orphaned
Packet Info - Information about a packet that was sent to an unconnected output port.
- Packet
- A unit that flows through the network.
- Salvo
- A collection of packets that enter or exit a node together.
Enums§
- Epoch
State - The lifecycle state of an epoch.
- NetAction
- An action that can be performed on the network.
- NetAction
Error - Errors that can occur when performing a NetAction
- NetAction
Response - The result of performing a network action.
- NetAction
Response Data - Data returned by a successful network action.
- NetEvent
- An event that occurred during a network action.
- Packet
Location - Where a packet is located in the network.
- Undo
Error - Errors that can occur when undoing a NetAction