pub enum LifecycleIntent {
Observe,
BuildOnly,
Switch,
Boot,
Test,
Install,
Destroy,
Convert,
Recovery,
Exec,
}Expand description
Operator-selected host lifecycle intent.
Intent is not read from host flake desired state. Identical selectors with different intents must produce different plan digests.
Variants§
Observe
Side-effect-free observe; plan contains preconditions and noop/empty actions only.
BuildOnly
Build system derivation/path only; must not require SSH or provider mutation.
Switch
Activate current generation.
Boot
Set default boot generation.
Test
Temporary activation.
Install
Install / first-boot / recreate path.
Destroy
Explicit guest/provider destroy.
Convert
In-place convert.
Recovery
Provider-owned recovery through the normal reviewed plan/apply DAG.
Exec
Execute an explicitly reviewed argv vector through the target provider.
Implementations§
Source§impl LifecycleIntent
impl LifecycleIntent
pub fn as_str(self) -> &'static str
pub fn parse(value: &str) -> Result<Self, String>
Sourcepub fn requires_destructive_approval(self) -> bool
pub fn requires_destructive_approval(self) -> bool
Intents that may require destructive approval evidence at apply time.
Sourcepub fn forbids_target_mutation(self) -> bool
pub fn forbids_target_mutation(self) -> bool
True when planning/applying must not contact the target host or mutate providers.
Trait Implementations§
Source§impl Clone for LifecycleIntent
impl Clone for LifecycleIntent
Source§fn clone(&self) -> LifecycleIntent
fn clone(&self) -> LifecycleIntent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LifecycleIntent
impl Debug for LifecycleIntent
Source§impl<'de> Deserialize<'de> for LifecycleIntent
impl<'de> Deserialize<'de> for LifecycleIntent
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 Hash for LifecycleIntent
impl Hash for LifecycleIntent
Source§impl PartialEq for LifecycleIntent
impl PartialEq for LifecycleIntent
Source§impl Serialize for LifecycleIntent
impl Serialize for LifecycleIntent
impl Copy for LifecycleIntent
impl Eq for LifecycleIntent
impl StructuralPartialEq for LifecycleIntent
Auto Trait Implementations§
impl Freeze for LifecycleIntent
impl RefUnwindSafe for LifecycleIntent
impl Send for LifecycleIntent
impl Sync for LifecycleIntent
impl Unpin for LifecycleIntent
impl UnsafeUnpin for LifecycleIntent
impl UnwindSafe for LifecycleIntent
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].