Enum asi_core0::Error [] [src]

pub enum Error {
    Sensor {
        sensor: SensorId,
        error: Box<Error>,
    },
    Actuator {
        actuator: ActuatorId,
        error: Box<Error>,
    },
    OutOfMemory {
        offset: usize,
        slots: usize,
    },
    InvalidMemoryAccess {
        memory: MemoryId,
        action: Action,
    },
    InvalidSensorAccess {
        sensor: SensorId,
        action: Action,
    },
    InvalidActuatorAccess {
        actuator: ActuatorId,
        action: Action,
    },
    MemoryAlreadyFree(MemoryId),
    WaitingPeriodInterrupted {
        time_remaining: f64,
    },
}

An error happened.

Variants

Something is wrong with the sensor.

Fields of Sensor

The sensor that sent the error.

The error sent from sensor.

Something is wrong with the actuator.

Fields of Actuator

The actuator that sent the error.

The error sent from the actuator.

Not enough memory. Includes the number of slots allocated.

Fields of OutOfMemory

The offset of allocated slots.

The number of slots allocated.

Invalid memory access.

Fields of InvalidMemoryAccess

The memory slot.

The action causing invalid memory access.

Invalid sensor access.

Fields of InvalidSensorAccess

The sensor.

The action causing invalid sensor access.

Invalid actuator access.

Fields of InvalidActuatorAccess

The actuator.

The action causing invalid actuator access.

Attempting to free memory that is already free.

Something interrupted the waiting period. This is usually a built-in hardware feature to wake up the agent.

Fields of WaitingPeriodInterrupted

The remaining time in seconds.

Trait Implementations

impl Debug for Error
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl !Send for Error

impl !Sync for Error