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

Finished the waiting period.

The actuator has received the output.

Fields of OutputReceived

The actuator that received the output.

The memory from which the output was written.

Input stored in memory.

Fields of InputStored

The sensor which sent input.

The memory slot where input is stored.

Memory is allocated.

Fields of MemoryAllocated

The offset of allocated memory.

Number of slots allocated.

Memory is freed.

Two memory slots are swapped.

Fields of MemorySwapped

The first memory slot.

The second memory slot.

Trait Implementations

impl Debug for Feedback
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Feedback

impl Sync for Feedback