pub enum NetActionError {
Show 19 variants
PacketNotFound {
packet_id: PacketID,
},
EpochNotFound {
epoch_id: EpochID,
},
EpochNotRunning {
epoch_id: EpochID,
},
EpochNotStartable {
epoch_id: EpochID,
},
CannotFinishNonEmptyEpoch {
epoch_id: EpochID,
},
PacketNotInNode {
packet_id: PacketID,
epoch_id: EpochID,
},
OutputPortNotFound {
port_name: PortName,
epoch_id: EpochID,
},
OutputSalvoConditionNotFound {
condition_name: SalvoConditionName,
epoch_id: EpochID,
},
MaxOutputSalvosReached {
condition_name: SalvoConditionName,
epoch_id: EpochID,
},
SalvoConditionNotMet {
condition_name: SalvoConditionName,
epoch_id: EpochID,
},
OutputPortFull {
port_name: PortName,
epoch_id: EpochID,
},
CannotPutPacketIntoUnconnectedOutputPort {
port_name: PortName,
node_name: NodeName,
},
NodeNotFound {
node_name: NodeName,
},
PacketNotAtInputPort {
packet_id: PacketID,
port_name: PortName,
node_name: NodeName,
},
InputPortNotFound {
port_name: PortName,
node_name: NodeName,
},
InputPortFull {
port_name: PortName,
node_name: NodeName,
},
CannotMovePacketFromRunningEpoch {
packet_id: PacketID,
epoch_id: EpochID,
},
CannotMovePacketIntoRunningEpoch {
packet_id: PacketID,
epoch_id: EpochID,
},
EdgeNotFound {
edge: Edge,
},
}Expand description
Errors that can occur when performing a NetAction
Variants§
PacketNotFound
Packet with the given ID was not found in the network
EpochNotFound
Epoch with the given ID was not found
EpochNotRunning
Epoch exists but is not in Running state
EpochNotStartable
Epoch exists but is not in Startable state
CannotFinishNonEmptyEpoch
Cannot finish epoch because it still contains packets
PacketNotInNode
Packet is not inside the specified epoch’s node location
OutputPortNotFound
Output port does not exist on the node
OutputSalvoConditionNotFound
Output salvo condition does not exist on the node
MaxOutputSalvosReached
Maximum number of output salvos reached for this condition
SalvoConditionNotMet
Output salvo condition is not satisfied
OutputPortFull
Output port has reached its capacity
CannotPutPacketIntoUnconnectedOutputPort
Cannot send packets to an output port that has no connected edge
NodeNotFound
Node with the given name was not found in the graph
PacketNotAtInputPort
Packet is not at the expected input port
InputPortNotFound
Input port does not exist on the node
InputPortFull
Input port has reached its capacity
CannotMovePacketFromRunningEpoch
Cannot move packet out of a running epoch
CannotMovePacketIntoRunningEpoch
Cannot move packet into a running epoch
EdgeNotFound
Edge does not exist in the graph