pub enum SidecarAdvisoryCode {
PypiRecordStale,
GemBundleInstallReverts,
GoModVerifyFails,
NugetSignedPackageTampered,
SidecarFixupFailed,
}Expand description
Stable enum tag for the kind of advisory. Adding a variant is a non-breaking change; renaming or removing one is breaking.
Current set (one per real-world scenario we surface):
PypiRecordStale— we didn’t rewrite.dist-info/RECORD;pip checkmay flag inconsistency.GemBundleInstallReverts—bundle install --redownloadwill overwrite patched gem files with the cached.gem.GoModVerifyFails—go mod verifywill report a hash mismatch againstgo.sum.go buildstill works.NugetSignedPackageTampered— package has a.nupkg.sha512signature sidecar we cannot honestly recompute;dotnet restoremay flag.SidecarFixupFailed— the fixup itself raised an error (I/O, parse). The patch is on disk; the sidecar is not.
Variants§
PypiRecordStale
GemBundleInstallReverts
GoModVerifyFails
NugetSignedPackageTampered
SidecarFixupFailed
Trait Implementations§
Source§impl Clone for SidecarAdvisoryCode
impl Clone for SidecarAdvisoryCode
Source§fn clone(&self) -> SidecarAdvisoryCode
fn clone(&self) -> SidecarAdvisoryCode
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 SidecarAdvisoryCode
impl Debug for SidecarAdvisoryCode
Source§impl PartialEq for SidecarAdvisoryCode
impl PartialEq for SidecarAdvisoryCode
Source§fn eq(&self, other: &SidecarAdvisoryCode) -> bool
fn eq(&self, other: &SidecarAdvisoryCode) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SidecarAdvisoryCode
impl Serialize for SidecarAdvisoryCode
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,
Serialize this value into the given Serde serializer. Read more
impl Copy for SidecarAdvisoryCode
impl Eq for SidecarAdvisoryCode
impl StructuralPartialEq for SidecarAdvisoryCode
Auto Trait Implementations§
impl Freeze for SidecarAdvisoryCode
impl RefUnwindSafe for SidecarAdvisoryCode
impl Send for SidecarAdvisoryCode
impl Sync for SidecarAdvisoryCode
impl Unpin for SidecarAdvisoryCode
impl UnsafeUnpin for SidecarAdvisoryCode
impl UnwindSafe for SidecarAdvisoryCode
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,
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.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>
Converts
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>
Converts
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