Enum asi_core0::Feedback
[−]
[src]
pub enum Feedback { WaitingPeriodComplete, OutputReceived { actuator: ActuatorId, memory: MemoryId, }, InputStored { sensor: SensorId, memory: MemoryId, }, MemoryAllocated { offset: usize, slots: usize, }, MemoryFreed(MemoryId), MemorySwapped { memory_a: MemoryId, memory_b: MemoryId, }, }
Feedback sent to the decision maker when there are any updates.
Variants
WaitingPeriodComplete
Finished the waiting period.
OutputReceived
The actuator has received the output.
Fields of OutputReceived
actuator: ActuatorId | The actuator that received the output. |
memory: MemoryId | The memory from which the output was written. |
InputStored
Input stored in memory.
Fields of InputStored
sensor: SensorId | The sensor which sent input. |
memory: MemoryId | The memory slot where input is stored. |
MemoryAllocated
Memory is allocated.
Fields of MemoryAllocated
offset: usize | The offset of allocated memory. |
slots: usize | Number of slots allocated. |
MemoryFreed(MemoryId)
Memory is freed.
MemorySwapped
Two memory slots are swapped.
Fields of MemorySwapped
memory_a: MemoryId | The first memory slot. |
memory_b: MemoryId | The second memory slot. |