Enum xio_webapi::ControllerState[][src]

pub enum ControllerState {
    Uninitialized,
    FlashingFirmware,
    UnsupportedFrameFormatVersion {
        required: u8,
        found: Option<u8>,
    },
    UnsupportedCommandSetVersion {
        required: u16,
        found: Option<u16>,
    },
    Ready,
    JobSetDeployed {
        deployed_jobs: BTreeSet<String>,
    },
    JobRunning {
        deployed_jobs: BTreeSet<String>,
        running: String,
    },
}

The current state of a controller.

Variants

The controller is uninitialized.

In this state, the controller can not be used. There is no information, why it has not been initialized. The reason may for example be that the initialization is ongoing, or that the controller has no firmware flashed.

The controller firmware is currently being flashed.

The controller has an unsupported XIO frame format version.

Fields of UnsupportedFrameFormatVersion

The frame format version required by the server.

The frame format version found on the controller.

If the controller has answered to frame format version request, the result is stored here. Otherwise it is `None.

The controller has an unsupported XIO commandset version.

Fields of UnsupportedCommandSetVersion

The commandset version required by the server.

The commandset version found on the controller.

If the controller has answered to frame format version request, the result is stored here. Otherwise it is `None.

The controller is ready for use, but has no jobset deployed.

A jobset has been deployed, and no job is running.

Fields of JobSetDeployed

The identifiers of the jobs that have been deployed.

A jobset has been deployed, and a job is currently running.

Fields of JobRunning

The identifiers of the jobs that have been deployed.

The identifier of the job that is currently running.

It is one of the identifiers stored in the deployed_jobs field.

Trait Implementations

impl Clone for ControllerState
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ControllerState
[src]

Formats the value using the given formatter. Read more

impl PartialEq for ControllerState
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ControllerState
[src]

impl Default for ControllerState
[src]

Returns the "default value" for a type. Read more

impl ToString for ControllerState
[src]

Converts the given value to a String. Read more

Auto Trait Implementations