Enum google_api_proto::google::cloud::osconfig::v1beta::instance::PatchState
source · #[repr(i32)]pub enum PatchState {
Show 16 variants
Unspecified = 0,
Pending = 1,
Inactive = 2,
Notified = 3,
Started = 4,
DownloadingPatches = 5,
ApplyingPatches = 6,
Rebooting = 7,
Succeeded = 8,
SucceededRebootRequired = 9,
Failed = 10,
Acked = 11,
TimedOut = 12,
RunningPrePatchStep = 13,
RunningPostPatchStep = 14,
NoAgentDetected = 15,
}
Expand description
Patch state of an instance.
Variants§
Unspecified = 0
Unspecified.
Pending = 1
The instance is not yet notified.
Inactive = 2
Instance is inactive and cannot be patched.
Notified = 3
The instance is notified that it should be patched.
Started = 4
The instance has started the patching process.
DownloadingPatches = 5
The instance is downloading patches.
ApplyingPatches = 6
The instance is applying patches.
Rebooting = 7
The instance is rebooting.
Succeeded = 8
The instance has completed applying patches.
SucceededRebootRequired = 9
The instance has completed applying patches but a reboot is required.
Failed = 10
The instance has failed to apply the patch.
Acked = 11
The instance acked the notification and will start shortly.
TimedOut = 12
The instance exceeded the time out while applying the patch.
RunningPrePatchStep = 13
The instance is running the pre-patch step.
RunningPostPatchStep = 14
The instance is running the post-patch step.
NoAgentDetected = 15
The service could not detect the presence of the agent. Check to ensure that the agent is installed, running, and able to communicate with the service.
Implementations§
source§impl PatchState
impl PatchState
source§impl PatchState
impl PatchState
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for PatchState
impl Clone for PatchState
source§fn clone(&self) -> PatchState
fn clone(&self) -> PatchState
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PatchState
impl Debug for PatchState
source§impl Default for PatchState
impl Default for PatchState
source§fn default() -> PatchState
fn default() -> PatchState
source§impl From<PatchState> for i32
impl From<PatchState> for i32
source§fn from(value: PatchState) -> i32
fn from(value: PatchState) -> i32
source§impl Hash for PatchState
impl Hash for PatchState
source§impl Ord for PatchState
impl Ord for PatchState
source§fn cmp(&self, other: &PatchState) -> Ordering
fn cmp(&self, other: &PatchState) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for PatchState
impl PartialEq for PatchState
source§fn eq(&self, other: &PatchState) -> bool
fn eq(&self, other: &PatchState) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for PatchState
impl PartialOrd for PatchState
source§fn partial_cmp(&self, other: &PatchState) -> Option<Ordering>
fn partial_cmp(&self, other: &PatchState) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for PatchState
impl TryFrom<i32> for PatchState
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<PatchState, UnknownEnumValue>
fn try_from(value: i32) -> Result<PatchState, UnknownEnumValue>
impl Copy for PatchState
impl Eq for PatchState
impl StructuralPartialEq for PatchState
Auto Trait Implementations§
impl Freeze for PatchState
impl RefUnwindSafe for PatchState
impl Send for PatchState
impl Sync for PatchState
impl Unpin for PatchState
impl UnwindSafe for PatchState
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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.§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>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request