Exhaustive mapping from the change-source degradation reason enum: the compiler forces every variant into the closed telemetry code set, so a newly added reason cannot bypass redaction.
(reason: &crate::change_source::ChangeSourceFallbackReason)
| 584 | /// the compiler forces every variant into the closed telemetry code |
| 585 | /// set, so a newly added reason cannot bypass redaction. |
| 586 | pub fn from_reason(reason: &crate::change_source::ChangeSourceFallbackReason) -> Self { |
| 587 | use crate::change_source::ChangeSourceFallbackReason as Reason; |
| 588 | match reason { |
| 589 | Reason::MissingIndex => Self::MissingIndex, |
| 590 | Reason::MalformedIndex(_) => Self::MalformedIndex, |
| 591 | Reason::ConversionPolicyChanged => Self::ConversionPolicyChanged, |
| 592 | Reason::CanonicalAttributesChanged => Self::CanonicalAttributesChanged, |
| 593 | Reason::SparsePolicyChanged => Self::SparsePolicyChanged, |
| 594 | Reason::ConfigurationChanged => Self::ConfigurationChanged, |
| 595 | Reason::FilterChanged => Self::FilterChanged, |
| 596 | Reason::ConfiguredOff => Self::ConfiguredOff, |
| 597 | Reason::DisabledInCi => Self::DisabledInCi, |
| 598 | Reason::DisabledInContainer => Self::DisabledInContainer, |
| 599 | Reason::Unavailable(_) => Self::Unavailable, |
| 600 | Reason::UnsupportedVersion { .. } => Self::UnsupportedVersion, |
| 601 | Reason::UnknownToken => Self::UnknownToken, |
| 602 | Reason::Overflow => Self::Overflow, |
| 603 | Reason::MalformedResponse(_) => Self::MalformedResponse, |
| 604 | Reason::Timeout { .. } => Self::Timeout, |
| 605 | Reason::SourceError(_) => Self::SourceError, |
| 606 | } |
| 607 | } |
| 608 | } |
| 609 | |
| 610 | impl RemediationCode { |
nothing calls this directly
no outgoing calls
no test coverage detected