#[non_exhaustive]pub enum ProvisionState {
Show 25 variants
Adopting,
AdoptFailed,
Active,
Available,
Cleaning,
CleanFailed,
CleanWait,
Deploying,
DeployFailed,
DeployWait,
Inspecting,
InspectFailed,
InspectWait,
Enroll,
Manageable,
Rescue,
Rescuing,
RescueFailed,
RescueWait,
Undeploying,
UndeployFailed,
Unrescuing,
UnrescueFailed,
Verifying,
Unknown,
}Expand description
Provision state of the node.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Adopting
Previously deployed node is being adopted.
AdoptFailed
Adopting a deployed node has failed.
Active
Node is deployed.
Available
Node is available for deployment.
Cleaning
A synchronous cleaning/preparing action is running.
CleanFailed
Cleaning has failed.
CleanWait
Waiting for an asynchronous cleaning/preparing action.
Deploying
A synchronous deployment action is running.
DeployFailed
Deployment has failed.
DeployWait
Waiting for an asynchronous deployment action.
Inspecting
Processing inspection data.
InspectFailed
Inspection has failed.
InspectWait
Waiting for inspection data from the ramdisk.
Enroll
Node is freshly enrolled.
Manageable
Node is enrolled and manageable.
Rescue
Node is in rescue mode.
Rescuing
Node is being prepared for rescue.
RescueFailed
Rescuing node failed.
RescueWait
Waiting for rescue ramdisk to come up.
Undeploying
Node is being undeployed (instance deletion).
UndeployFailed
Undeployment failed before cleaning.
Unrescuing
Node is exiting rescue mode.
UnrescueFailed
Exiting rescue mode has failed.
Verifying
Management access is being verified.
Unknown
Reported provision state is not supported.
Implementations§
Source§impl ProvisionState
impl ProvisionState
Sourcepub fn is_stable(&self) -> bool
pub fn is_stable(&self) -> bool
Whether the state is stable.
A node will stay in a stable state forever, unless explicitly moved to a different state. Error states are not considered stable since they require an action.
Sourcepub fn is_failure(&self) -> bool
pub fn is_failure(&self) -> bool
Whether the state represents a failure.
Failure states are similar to stable states since nodes do not leave them automatically. But they require intervention for recovery.
Trait Implementations§
Source§impl Clone for ProvisionState
impl Clone for ProvisionState
Source§fn clone(&self) -> ProvisionState
fn clone(&self) -> ProvisionState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProvisionState
impl Debug for ProvisionState
Source§impl<'de> Deserialize<'de> for ProvisionState
impl<'de> Deserialize<'de> for ProvisionState
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>,
Source§impl Display for ProvisionState
impl Display for ProvisionState
Source§impl From<ProvisionState> for String
impl From<ProvisionState> for String
Source§fn from(value: ProvisionState) -> String
fn from(value: ProvisionState) -> String
Source§impl PartialEq for ProvisionState
impl PartialEq for ProvisionState
Source§impl Serialize for ProvisionState
impl Serialize for ProvisionState
impl Copy for ProvisionState
impl Eq for ProvisionState
impl StructuralPartialEq for ProvisionState
Auto Trait Implementations§
impl Freeze for ProvisionState
impl RefUnwindSafe for ProvisionState
impl Send for ProvisionState
impl Sync for ProvisionState
impl Unpin for ProvisionState
impl UnwindSafe for ProvisionState
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
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§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
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.