Enum xio_webapi::ModuleState[][src]

pub enum ModuleState {
    Unknown,
    Uninitialized,
    Ready {
        assigned_to_jobset: bool,
    },
    Running {
        assigned_to_jobset: bool,
    },
    Error,
}

The state of a XIO module.

Variants

The state of the module is unknown (e.g. has not been requested from the device yet).

The module is uninitialized.

The module is ready to be started.

Fields of Ready

If true, the module has been assigned to a jobset.

In this state, it can not be controlled by requesting a ModuleAction, because then the job control takes care of switching the module state.

The module is currently running.

Fields of Running

If true, the module has been assigned to a jobset.

In this state, it can not be controlled by requesting a ModuleAction, because then the job control takes care of switching the module state.

An error has occurred

Trait Implementations

impl Clone for ModuleState
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ModuleState
[src]

Formats the value using the given formatter. Read more

impl PartialEq for ModuleState
[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 ModuleState
[src]

impl Default for ModuleState
[src]

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

Auto Trait Implementations

impl Send for ModuleState

impl Sync for ModuleState