pub enum PatchAction {
Discovered,
Downloaded,
Applied,
Updated,
Skipped,
Failed,
Removed,
Verified,
}Expand description
What kind of thing happened to a patch.
Serializes to camelCase strings — e.g. Applied → "applied",
Downloaded → "downloaded" (a hypothetical multi-word variant would
lower-camel, e.g. FooBar → "fooBar"). The full vocabulary is part of
the CLI contract; new variants are MINOR-safe but renames are MAJOR.
Variants§
Discovered
scan: a patch exists upstream for this package, but no action
taken yet (no --apply / --sync).
Downloaded
get / scan --apply / apply (online): patch bytes were
fetched from the registry.
Applied
apply / scan --sync: patch was applied to disk. files
enumerates which files changed.
Updated
apply / scan --sync: patch replaced an older patch (the
manifest already had a different UUID for this PURL). oldUuid
carries the previous UUID.
Skipped
apply / scan / get: the patch was a no-op — already
applied, not in scope, or filtered out. errorCode carries the
reason tag.
Failed
Any command: an attempt failed. errorCode is the routing tag,
error is the human message.
Removed
gc / repair / remove / rollback: data was removed from
.socket/ (or from disk in the rollback case).
Verified
apply --dry-run / scan --dry-run: patch would apply
cleanly. files lists what would change.
Trait Implementations§
Source§impl Clone for PatchAction
impl Clone for PatchAction
Source§fn clone(&self) -> PatchAction
fn clone(&self) -> PatchAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PatchAction
impl Debug for PatchAction
Source§impl Hash for PatchAction
impl Hash for PatchAction
Source§impl PartialEq for PatchAction
impl PartialEq for PatchAction
Source§fn eq(&self, other: &PatchAction) -> bool
fn eq(&self, other: &PatchAction) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for PatchAction
impl Serialize for PatchAction
impl Copy for PatchAction
impl Eq for PatchAction
impl StructuralPartialEq for PatchAction
Auto Trait Implementations§
impl Freeze for PatchAction
impl RefUnwindSafe for PatchAction
impl Send for PatchAction
impl Sync for PatchAction
impl Unpin for PatchAction
impl UnsafeUnpin for PatchAction
impl UnwindSafe for PatchAction
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<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