#[repr(u8)]pub enum LifecycleState {
Unconfigured = 1,
Inactive = 2,
Active = 3,
Finalized = 4,
ErrorProcessing = 5,
}Expand description
Lifecycle state (REP-2002)
A lifecycle node is always in exactly one of these states.
Variants§
Unconfigured = 1
Initial state after construction. Node is not yet configured.
Inactive = 2
Node is configured but not processing data.
Active = 3
Node is fully operational and processing data.
Finalized = 4
Terminal state. Node cannot be reused.
ErrorProcessing = 5
Error occurred during a transition. Must recover or shut down.
Implementations§
Source§impl LifecycleState
impl LifecycleState
Sourcepub const fn is_terminal(&self) -> bool
pub const fn is_terminal(&self) -> bool
Returns true if this is a terminal state (Finalized).
Sourcepub const fn is_primary(&self) -> bool
pub const fn is_primary(&self) -> bool
Returns true if this is a primary state (not a transition state).
Primary states are: Unconfigured, Inactive, Active, Finalized. ErrorProcessing is the only non-primary state.
Trait Implementations§
Source§impl Clone for LifecycleState
impl Clone for LifecycleState
Source§fn clone(&self) -> LifecycleState
fn clone(&self) -> LifecycleState
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 LifecycleState
impl Debug for LifecycleState
Source§impl Hash for LifecycleState
impl Hash for LifecycleState
Source§impl PartialEq for LifecycleState
impl PartialEq for LifecycleState
impl Copy for LifecycleState
impl Eq for LifecycleState
impl StructuralPartialEq for LifecycleState
Auto Trait Implementations§
impl Freeze for LifecycleState
impl RefUnwindSafe for LifecycleState
impl Send for LifecycleState
impl Sync for LifecycleState
impl Unpin for LifecycleState
impl UnsafeUnpin for LifecycleState
impl UnwindSafe for LifecycleState
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