pub enum ModuleAction {
Initialize,
Start,
Stop,
Uninitialize,
}
Expand description
Actions for controlling module state.
Variants§
Initialize
Initialize a module.
Can only be executed when the module is in Uninitialized
state.
Start
Start a module.
Can only be executed when the module is in Ready
state
while not being assigned to a jobset.
Stop
Stop a module.
Can only be executed when the module is in Running
state
while not being assigned to a jobset.
Uninitialize
Uninitialize a module.
Can only be executed when the module is in Ready
state
while not being assigned to a jobset.
Trait Implementations§
Source§impl Clone for ModuleAction
impl Clone for ModuleAction
Source§fn clone(&self) -> ModuleAction
fn clone(&self) -> ModuleAction
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 ModuleAction
impl Debug for ModuleAction
Source§impl Default for ModuleAction
impl Default for ModuleAction
Source§impl<'de> Deserialize<'de> for ModuleAction
impl<'de> Deserialize<'de> for ModuleAction
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 ModuleAction
impl PartialEq for ModuleAction
Source§impl Serialize for ModuleAction
impl Serialize for ModuleAction
impl Eq for ModuleAction
impl MustNotBeSkipped for ModuleAction
impl StructuralPartialEq for ModuleAction
Auto Trait Implementations§
impl Freeze for ModuleAction
impl RefUnwindSafe for ModuleAction
impl Send for ModuleAction
impl Sync for ModuleAction
impl Unpin for ModuleAction
impl UnwindSafe for ModuleAction
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.Source§impl<T> MayBeSkipped for Twhere
T: MustNotBeSkipped,
impl<T> MayBeSkipped for Twhere
T: MustNotBeSkipped,
Source§fn may_be_skipped(&self) -> bool
fn may_be_skipped(&self) -> bool
Tell whether the content may be skipped.