pub enum VirtualMachineFaultToleranceStateEnum {
NotConfigured,
Disabled,
Enabled,
NeedSecondary,
Starting,
Running,
Other_(String),
}Expand description
The FaultToleranceState type defines a simple set of states for a fault tolerant virtual machine: disabled, starting, and enabled.
Possible values:
-
notConfigured: This state indicates that the virtual machine has not been configured for fault tolerance. -
disabled: For a virtual machine that is the primary in a fault tolerant group, this state indicates that the virtual machine has at least one registered secondary, but no secondary is enabled.For a virtual machine that is the secondary in a fault tolerant group, this state indicates that the secondary is disabled.
-
enabled: For a virtual machine that is the primary in a fault tolerant group, this state indicates that the virtual machine is not currently powered on, but has at least one enabled secondary For a virtual machine that is the secondary in a fault tolerant group, this state indicates that the secondary is enabled, but is not currently powered on. -
needSecondary: For a virtual machine that is the primary in a fault tolerant group, this state indicates that the virtual machine is powered on and has at least one enabled secondary, but no secondary is currently active.This state is not valid for a virtual machine that is a secondary in a fault tolerant group.
-
starting: For a virtual machine that is the primary in a fault tolerant group, this state indicates that the virtual machine is powered on and has at least one secondary that is synchronizing its state with the primary.For a virtual machine that is the secondary in a fault tolerant group, this state indicates that the secondary is powered on and is synchronizing its state with the primary virtual machine.
-
running: This state indicates that the virtual machine is running with fault tolerance protection.
§How to access
VirtualMachine::runtime.fault_tolerance_stateVirtualMachine::summary.runtime.fault_tolerance_stateHostSystem::query_host_connection_info().vm?[*].runtime.fault_tolerance_stateDatacenter::query_connection_info().vm?[*].runtime.fault_tolerance_stateDatacenter::query_connection_info_via_spec().vm?[*].runtime.fault_tolerance_stateEnvironmentBrowser::query_config_target().usb?[*].summary?.runtime.fault_tolerance_state
Variants§
NotConfigured
Disabled
Enabled
NeedSecondary
Starting
Running
Other_(String)
This variant handles values not known at compile time.
Implementations§
Trait Implementations§
Source§impl Clone for VirtualMachineFaultToleranceStateEnum
impl Clone for VirtualMachineFaultToleranceStateEnum
Source§fn clone(&self) -> VirtualMachineFaultToleranceStateEnum
fn clone(&self) -> VirtualMachineFaultToleranceStateEnum
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> From<&'a VirtualMachineFaultToleranceStateEnum> for &'a str
impl<'a> From<&'a VirtualMachineFaultToleranceStateEnum> for &'a str
Source§fn from(value: &'a VirtualMachineFaultToleranceStateEnum) -> Self
fn from(value: &'a VirtualMachineFaultToleranceStateEnum) -> Self
Source§impl PartialEq for VirtualMachineFaultToleranceStateEnum
impl PartialEq for VirtualMachineFaultToleranceStateEnum
Source§fn eq(&self, other: &VirtualMachineFaultToleranceStateEnum) -> bool
fn eq(&self, other: &VirtualMachineFaultToleranceStateEnum) -> bool
self and other values to be equal, and is used by ==.impl Eq for VirtualMachineFaultToleranceStateEnum
impl StructuralPartialEq for VirtualMachineFaultToleranceStateEnum
Auto Trait Implementations§
impl Freeze for VirtualMachineFaultToleranceStateEnum
impl RefUnwindSafe for VirtualMachineFaultToleranceStateEnum
impl Send for VirtualMachineFaultToleranceStateEnum
impl Sync for VirtualMachineFaultToleranceStateEnum
impl Unpin for VirtualMachineFaultToleranceStateEnum
impl UnsafeUnpin for VirtualMachineFaultToleranceStateEnum
impl UnwindSafe for VirtualMachineFaultToleranceStateEnum
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<To, T> CastInto<To> for T
impl<To, T> CastInto<To> for 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.