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
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. |
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: BTreeSet<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: BTreeSet<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 |
Trait Implementations
impl Clone for ControllerState
[src]
impl Clone for ControllerState
fn clone(&self) -> ControllerState
[src]
fn clone(&self) -> ControllerState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for ControllerState
[src]
impl Debug for ControllerState
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for ControllerState
[src]
impl PartialEq for ControllerState
fn eq(&self, other: &ControllerState) -> bool
[src]
fn eq(&self, other: &ControllerState) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ControllerState) -> bool
[src]
fn ne(&self, other: &ControllerState) -> bool
This method tests for !=
.
impl Eq for ControllerState
[src]
impl Eq for ControllerState
impl Default for ControllerState
[src]
impl Default for ControllerState
impl ToString for ControllerState
[src]
impl ToString for ControllerState
Auto Trait Implementations
impl Send for ControllerState
impl Send for ControllerState
impl Sync for ControllerState
impl Sync for ControllerState