pub enum NodeLifecycleState {
Ready,
Running,
PauseRequested,
Paused,
Waiting,
StopRequested,
Stopped,
Failed,
Completed,
}Expand description
Node lifecycle state for routed work.
Variants§
Implementations§
Source§impl NodeLifecycleState
impl NodeLifecycleState
Sourcepub const fn is_terminal(&self) -> bool
pub const fn is_terminal(&self) -> bool
Whether the node is in a terminal state.
Sourcepub const fn can_accept_new_work(&self) -> bool
pub const fn can_accept_new_work(&self) -> bool
Whether the node can accept new work.
Sourcepub const fn can_accept_control(&self) -> bool
pub const fn can_accept_control(&self) -> bool
Whether the node can accept control commands (pause, steer, stop).
Sourcepub const fn is_stop_requested(&self) -> bool
pub const fn is_stop_requested(&self) -> bool
Whether stop has been requested or reached for this node.
Trait Implementations§
Source§impl Clone for NodeLifecycleState
impl Clone for NodeLifecycleState
Source§fn clone(&self) -> NodeLifecycleState
fn clone(&self) -> NodeLifecycleState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NodeLifecycleState
Source§impl Debug for NodeLifecycleState
impl Debug for NodeLifecycleState
Source§impl<'de> Deserialize<'de> for NodeLifecycleState
impl<'de> Deserialize<'de> for NodeLifecycleState
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeLifecycleState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<NodeLifecycleState, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for NodeLifecycleState
Source§impl Hash for NodeLifecycleState
impl Hash for NodeLifecycleState
Source§impl Ord for NodeLifecycleState
impl Ord for NodeLifecycleState
Source§fn cmp(&self, other: &NodeLifecycleState) -> Ordering
fn cmp(&self, other: &NodeLifecycleState) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for NodeLifecycleState
impl PartialEq for NodeLifecycleState
Source§impl PartialOrd for NodeLifecycleState
impl PartialOrd for NodeLifecycleState
Source§impl Serialize for NodeLifecycleState
impl Serialize for NodeLifecycleState
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for NodeLifecycleState
Auto Trait Implementations§
impl Forget for NodeLifecycleState
impl Freeze for NodeLifecycleState
impl Move for NodeLifecycleState
impl RefUnwindSafe for NodeLifecycleState
impl Send for NodeLifecycleState
impl Sync for NodeLifecycleState
impl Unpin for NodeLifecycleState
impl UnsafeUnpin for NodeLifecycleState
impl UnwindSafe for NodeLifecycleState
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.