#[non_exhaustive]pub enum UpdateStatus {
Queued,
Pending,
InProgress,
AwaitingRestart,
Completed,
Failed,
Interrupted,
}Expand description
Status of an individual update record.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Queued
The update is queued and waiting for the host to become free. This
applies to both batch items waiting for a preceding update on the same
host, and to single (non-batch) updates triggered when the host already
had an active update. Not an active state — no in-progress work on the
host. Terminal states are Self::Completed, Self::Failed, and
Self::Interrupted.
Pending
The update is waiting to be dispatched.
InProgress
The update is currently running on the agent.
AwaitingRestart
The update has finished but requires a system restart to take effect.
Completed
The update completed successfully.
Failed
The update failed.
Interrupted
The update’s outcome is unknown: the executing connection was lost or the
update exceeded its time budget before a terminal result was reported.
Terminal. Distinct from Self::Failed, which carries a real failure
outcome from the agent. Recovery is user-driven — verify the installed
version before re-running.
Implementations§
Source§impl UpdateStatus
impl UpdateStatus
Sourcepub const fn unfinished() -> [UpdateStatus; 4]
pub const fn unfinished() -> [UpdateStatus; 4]
All non-terminal statuses — states where a new trigger for the same (host, software_item) must be rejected.
Sourcepub const fn host_blocking() -> [UpdateStatus; 3]
pub const fn host_blocking() -> [UpdateStatus; 3]
Statuses that block the host from running another update concurrently.
Excludes Queued — a queued update does not occupy the host’s execution
slot.
Trait Implementations§
Source§impl Clone for UpdateStatus
impl Clone for UpdateStatus
Source§fn clone(&self) -> UpdateStatus
fn clone(&self) -> UpdateStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for UpdateStatus
Source§impl Debug for UpdateStatus
impl Debug for UpdateStatus
Source§impl<'de> Deserialize<'de> for UpdateStatus
impl<'de> Deserialize<'de> for UpdateStatus
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<UpdateStatus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Display for UpdateStatus
impl Display for UpdateStatus
impl Eq for UpdateStatus
Source§impl FromStr for UpdateStatus
impl FromStr for UpdateStatus
Source§type Err = ParseUpdateStatusError
type Err = ParseUpdateStatusError
Source§fn from_str(s: &str) -> Result<UpdateStatus, <UpdateStatus as FromStr>::Err>
fn from_str(s: &str) -> Result<UpdateStatus, <UpdateStatus as FromStr>::Err>
s to return a value of this type. Read moreSource§impl Hash for UpdateStatus
impl Hash for UpdateStatus
Source§impl PartialEq for UpdateStatus
impl PartialEq for UpdateStatus
Source§impl Serialize for UpdateStatus
impl Serialize for UpdateStatus
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for UpdateStatus
Auto Trait Implementations§
impl Freeze for UpdateStatus
impl RefUnwindSafe for UpdateStatus
impl Send for UpdateStatus
impl Sync for UpdateStatus
impl Unpin for UpdateStatus
impl UnsafeUnpin for UpdateStatus
impl UnwindSafe for UpdateStatus
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more