Enum ControllerState

Source
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

§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

§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

§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

§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§

Source§

impl Clone for ControllerState

Source§

fn clone(&self) -> ControllerState

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ControllerState

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ControllerState

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for ControllerState

Source§

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

Source§

fn eq(&self, other: &ControllerState) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ControllerState

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl ToString for ControllerState

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl Eq for ControllerState

Source§

impl StructuralPartialEq for ControllerState

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

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

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PathLoad for T

Source§

fn load_from_path<P>(path: P) -> Result<T, Error>
where P: AsRef<Path> + Debug,

Load the data structure from a path.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

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

Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Err>

Source§

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