[][src]Enum xio_webapi::ControllerState

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

The current state of a controller.

Variants

Uninitialized

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.

FlashingFirmware

The controller firmware is currently being flashed.

UnsupportedFrameFormatVersion

The controller has an unsupported XIO frame format version.

Fields of UnsupportedFrameFormatVersion

required: u8

The frame format version required by the server.

found: Option<u8>

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.

UnsupportedCommandSetVersion

The controller has an unsupported XIO commandset version.

Fields of UnsupportedCommandSetVersion

required: u16

The commandset version required by the server.

found: Option<u16>

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.

Stale

The connection to the controller is stale.

Ready

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

JobSetDeployed

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

Fields of JobSetDeployed

deployed_jobs: IndexSet<String>

The identifiers of the jobs that have been deployed.

JobRunning

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

Fields of JobRunning

deployed_jobs: IndexSet<String>

The identifiers of the jobs that have been deployed.

running: String

The identifier of the job that is currently running.

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

Trait Implementations

impl Eq for ControllerState[src]

impl Default for ControllerState[src]

impl Clone for ControllerState[src]

impl PartialEq<ControllerState> for ControllerState[src]

impl ToString for ControllerState[src]

impl Debug for ControllerState[src]

impl Serialize for ControllerState[src]

impl<'de> Deserialize<'de> for ControllerState[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> PathLoad for T where
    T: DeserializeOwned