#[non_exhaustive]pub enum UpdateFinalStatus {
Completed,
Failed,
Other(String),
}Expand description
Final status of an update execution.
§Wire forward-compatibility
Other(String) is a catch-all for status strings received from a newer
agent that this build does not yet recognise. Serde deserialization is
infallible: an unknown string becomes Other(...) rather than a parse
error, allowing older controllers to survive rolling upgrades without
dropping the enclosing UpdateResult message.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Completed
Failed
Other(String)
An unknown status received from a newer peer.
The inner string is the raw snake_case value as it appeared on the wire.
Implementations§
Source§impl UpdateFinalStatus
impl UpdateFinalStatus
Sourcepub fn as_str(&self) -> &str
pub fn as_str(&self) -> &str
Returns the string representation.
For UpdateFinalStatus::Other, returns the inner string as-is.
Trait Implementations§
Source§impl Clone for UpdateFinalStatus
impl Clone for UpdateFinalStatus
Source§fn clone(&self) -> UpdateFinalStatus
fn clone(&self) -> UpdateFinalStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UpdateFinalStatus
impl Debug for UpdateFinalStatus
Source§impl<'de> Deserialize<'de> for UpdateFinalStatus
impl<'de> Deserialize<'de> for UpdateFinalStatus
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for UpdateFinalStatus
impl Display for UpdateFinalStatus
impl Eq for UpdateFinalStatus
Source§impl From<String> for UpdateFinalStatus
impl From<String> for UpdateFinalStatus
Source§impl PartialEq for UpdateFinalStatus
impl PartialEq for UpdateFinalStatus
Source§fn eq(&self, other: &UpdateFinalStatus) -> bool
fn eq(&self, other: &UpdateFinalStatus) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UpdateFinalStatus
impl Serialize for UpdateFinalStatus
impl StructuralPartialEq for UpdateFinalStatus
Auto Trait Implementations§
impl Freeze for UpdateFinalStatus
impl RefUnwindSafe for UpdateFinalStatus
impl Send for UpdateFinalStatus
impl Sync for UpdateFinalStatus
impl Unpin for UpdateFinalStatus
impl UnsafeUnpin for UpdateFinalStatus
impl UnwindSafe for UpdateFinalStatus
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.