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,
},
}
Expand description
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
UnsupportedCommandSetVersion
The controller has an unsupported XIO commandset version.
Fields
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.
JobRunning
A jobset has been deployed, and a job is currently running.
Trait Implementations§
Source§impl Clone for ControllerState
impl Clone for ControllerState
Source§fn clone(&self) -> ControllerState
fn clone(&self) -> ControllerState
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ControllerState
impl Debug for ControllerState
Source§impl Default for ControllerState
impl Default for ControllerState
Source§impl<'de> Deserialize<'de> for ControllerState
impl<'de> Deserialize<'de> for ControllerState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ControllerState
impl PartialEq for ControllerState
Source§impl Serialize for ControllerState
impl Serialize for ControllerState
Source§impl ToString for ControllerState
impl ToString for ControllerState
impl Eq for ControllerState
impl StructuralPartialEq for ControllerState
Auto Trait Implementations§
impl Freeze for ControllerState
impl RefUnwindSafe for ControllerState
impl Send for ControllerState
impl Sync for ControllerState
impl Unpin for ControllerState
impl UnwindSafe for ControllerState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.