pub enum ActionState {
Done,
Failed,
New,
Running,
}
Expand description
Current state of an action execution.
Variants
Done
The action was successfully completed.
Failed
The action ended with an error.
New
The action has just been sheduled and is not being executed yet.
Running
The action was started by the agent and is in progress.
Implementations
sourceimpl ActionState
impl ActionState
sourcepub fn is_finished(&self) -> bool
pub fn is_finished(&self) -> bool
True if the action is finished (failed or succeeded).
Trait Implementations
sourceimpl Clone for ActionState
impl Clone for ActionState
sourcefn clone(&self) -> ActionState
fn clone(&self) -> ActionState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ActionState
impl Debug for ActionState
sourceimpl<'de> Deserialize<'de> for ActionState
impl<'de> Deserialize<'de> for ActionState
sourcefn 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
sourceimpl Hash for ActionState
impl Hash for ActionState
sourceimpl PartialEq<ActionState> for ActionState
impl PartialEq<ActionState> for ActionState
sourcefn eq(&self, other: &ActionState) -> bool
fn eq(&self, other: &ActionState) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for ActionState
impl Serialize for ActionState
impl Eq for ActionState
impl StructuralEq for ActionState
impl StructuralPartialEq for ActionState
Auto Trait Implementations
impl RefUnwindSafe for ActionState
impl Send for ActionState
impl Sync for ActionState
impl Unpin for ActionState
impl UnwindSafe for ActionState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more