Module net

Module net 

Source
Expand description

Runtime state and operations for flow-based development networks.

This module provides the Net 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 Net::do_action which accepts a NetAction and returns a NetActionResponse containing any events that occurred.

Structs§

Epoch
An execution instance of a node.
Net
The runtime state of a flow-based network.
Packet
A unit that flows through the network.
Salvo
A collection of packets that enter or exit a node together.

Enums§

EpochState
The lifecycle state of an epoch.
NetAction
An action that can be performed on the network.
NetActionError
Errors that can occur when performing a NetAction
NetActionResponse
The result of performing a network action.
NetActionResponseData
Data returned by a successful network action.
NetEvent
An event that occurred during a network action.
PacketLocation
Where a packet is located in the network.

Type Aliases§

EpochID
Unique identifier for an epoch (ULID).
EventUTC
Timestamp in milliseconds (UTC).
PacketID
Unique identifier for a packet (ULID).