pub enum ModuleState {
Unknown,
Uninitialized,
Ready {
assigned_to_jobset: bool,
},
Running {
assigned_to_jobset: bool,
},
Error,
}Expand description
The state of a XIO module.
Variants§
Unknown
The state of the module is unknown (e.g. has not been requested from the device yet).
Uninitialized
The module is uninitialized.
Ready
The module is ready to be started.
Fields
Running
The module is currently running.
Fields
Error
An error has occurred
Trait Implementations§
Source§impl Clone for ModuleState
impl Clone for ModuleState
Source§fn clone(&self) -> ModuleState
fn clone(&self) -> ModuleState
Returns a duplicate 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 ModuleState
impl Debug for ModuleState
Source§impl Default for ModuleState
impl Default for ModuleState
Source§fn default() -> ModuleState
fn default() -> ModuleState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModuleState
impl<'de> Deserialize<'de> for ModuleState
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 ModuleState
impl PartialEq for ModuleState
Source§impl Serialize for ModuleState
impl Serialize for ModuleState
impl Eq for ModuleState
impl StructuralPartialEq for ModuleState
Auto Trait Implementations§
impl Freeze for ModuleState
impl RefUnwindSafe for ModuleState
impl Send for ModuleState
impl Sync for ModuleState
impl Unpin for ModuleState
impl UnwindSafe for ModuleState
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.