pub enum StructuralTofProjectError {
Domain(DomainError),
Workflow(StructuralTofMultiBankError),
Refinement(StructuralTofMultiBankRefinementError),
DuplicateAnalysis {
analysis_id: RecordId,
},
DuplicateHistogramOwnership {
histogram_id: RecordId,
},
UnknownHistogram {
histogram_id: RecordId,
},
HistogramStateMismatch {
histogram_id: RecordId,
},
PhaseOrderMismatch {
histogram_id: RecordId,
},
PhaseStateMismatch {
phase_id: RecordId,
},
}Expand description
Invalid project-level structural TOF state.
Variants§
Domain(DomainError)
Application-neutral project validation failed.
Workflow(StructuralTofMultiBankError)
Structural TOF input failed validation.
Refinement(StructuralTofMultiBankRefinementError)
Structural TOF solver/checkpoint state failed validation.
DuplicateAnalysis
More than one analysis has the same stable identity.
DuplicateHistogramOwnership
A TOF histogram is assigned to multiple structural analyses.
UnknownHistogram
Analysis references a missing TOF histogram.
HistogramStateMismatch
Bank pattern or initial instrument differs from its histogram record.
PhaseOrderMismatch
Histogram phase references are not exactly the shared analysis phase.
PhaseStateMismatch
Analysis phase identity, label, definition, or provider contract differs.
Trait Implementations§
Source§impl Debug for StructuralTofProjectError
impl Debug for StructuralTofProjectError
Source§impl Display for StructuralTofProjectError
impl Display for StructuralTofProjectError
Source§impl Error for StructuralTofProjectError
impl Error for StructuralTofProjectError
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()
Source§impl From<DomainError> for StructuralTofProjectError
impl From<DomainError> for StructuralTofProjectError
Source§fn from(value: DomainError) -> Self
fn from(value: DomainError) -> Self
Converts to this type from the input type.
Source§impl From<StructuralTofMultiBankError> for StructuralTofProjectError
impl From<StructuralTofMultiBankError> for StructuralTofProjectError
Source§fn from(value: StructuralTofMultiBankError) -> Self
fn from(value: StructuralTofMultiBankError) -> Self
Converts to this type from the input type.
Source§impl From<StructuralTofMultiBankRefinementError> for StructuralTofProjectError
impl From<StructuralTofMultiBankRefinementError> for StructuralTofProjectError
Source§fn from(value: StructuralTofMultiBankRefinementError) -> Self
fn from(value: StructuralTofMultiBankRefinementError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for StructuralTofProjectError
impl !UnwindSafe for StructuralTofProjectError
impl Freeze for StructuralTofProjectError
impl Send for StructuralTofProjectError
impl Sync for StructuralTofProjectError
impl Unpin for StructuralTofProjectError
impl UnsafeUnpin for StructuralTofProjectError
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.