#[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§impl PartialOrd for PatchState
impl PartialOrd for PatchState
Source§impl TryFrom<i32> for PatchState
impl TryFrom<i32> for PatchState
Source§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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