#[non_exhaustive]pub enum AnalyticsError {
MissingDecay(NuclideId),
MissingEnergy(NuclideId),
MissingDose(NuclideId),
Core(Error),
}Expand description
Errors from radioanalytics beyond the shared crate::Error set.
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.
MissingDecay(NuclideId)
No decay data was available for a requested nuclide.
Reserved for provider-level absence. The built-in analytics paths
below never construct this anymore: a known atomic mass with no
decay constant is a stable nuclide (λ = 0) and contributes exactly
0.0 instead of erroring, so only a genuinely unknown nuclide (no
mass data, crate::Error::MissingMass) can still fail. The
variant is retained for API compatibility.
MissingEnergy(NuclideId)
No mean decay energy was available for a requested nuclide.
MissingDose(NuclideId)
No dose factor was available for a requested nuclide/pathway/source.
Core(Error)
An underlying composition failure (missing mass, degenerate total).
Trait Implementations§
Source§impl Debug for AnalyticsError
impl Debug for AnalyticsError
Source§impl Display for AnalyticsError
impl Display for AnalyticsError
Source§impl Error for AnalyticsError
impl Error for AnalyticsError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for AnalyticsError
impl !UnwindSafe for AnalyticsError
impl Freeze for AnalyticsError
impl Send for AnalyticsError
impl Sync for AnalyticsError
impl Unpin for AnalyticsError
impl UnsafeUnpin for AnalyticsError
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