pub enum RietveldRecipeError {
Show 15 variants
InvalidRecipeName,
InvalidStageName,
InvalidRationale,
InvalidAcceptedTerminations,
InvalidPlannerNote,
EmptyRecipe,
DuplicateStageName {
name: String,
},
UnauthorizedSelection {
stage: String,
},
MissingConstraintDependency {
stage: String,
target: Box<ParameterKey>,
missing: Box<ParameterKey>,
},
UnsatisfiedConstraint {
key: Box<ParameterKey>,
},
InternalInvariant,
Constraint(Box<ConstraintError>),
Parameter(Box<RietveldGeneralParameterError>),
Rietveld(Box<RietveldError>),
Refinement(Box<RietveldGeneralRefinementError>),
}Expand description
Invalid staged Rietveld workflow state.
Variants§
InvalidRecipeName
Recipe name is empty or contains surrounding whitespace.
InvalidStageName
Stage name is empty or contains surrounding whitespace.
InvalidRationale
A stage has no valid human-readable rationale.
InvalidAcceptedTerminations
Accepted termination policy is empty or contains duplicates.
InvalidPlannerNote
A planner note is empty or contains surrounding whitespace.
EmptyRecipe
Recipe has no stages.
DuplicateStageName
Recipe has two stages with the same stable name.
Stage selects a parameter outside the caller-authorized maximum.
Fields
Invalid stage name.
MissingConstraintDependency
Selected constraint target is missing one selected dependency.
UnsatisfiedConstraint
Full authorized physical state does not satisfy its constraint graph.
Fields
key: Box<ParameterKey>First inconsistent physical identity.
InternalInvariant
A validated layout unexpectedly omitted one key.
Constraint(Box<ConstraintError>)
Constraint graph or expansion failed.
Parameter(Box<RietveldGeneralParameterError>)
Complete parameter layout failed.
Rietveld(Box<RietveldError>)
Input or initial calculation failed.
Refinement(Box<RietveldGeneralRefinementError>)
One numerical stage failed.
Trait Implementations§
Source§impl Debug for RietveldRecipeError
impl Debug for RietveldRecipeError
Source§impl Display for RietveldRecipeError
impl Display for RietveldRecipeError
Source§impl Error for RietveldRecipeError
impl Error for RietveldRecipeError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ConstraintError> for RietveldRecipeError
impl From<ConstraintError> for RietveldRecipeError
Source§fn from(value: ConstraintError) -> Self
fn from(value: ConstraintError) -> Self
Source§impl From<RietveldError> for RietveldRecipeError
impl From<RietveldError> for RietveldRecipeError
Source§fn from(value: RietveldError) -> Self
fn from(value: RietveldError) -> Self
Source§impl From<RietveldGeneralParameterError> for RietveldRecipeError
impl From<RietveldGeneralParameterError> for RietveldRecipeError
Source§fn from(value: RietveldGeneralParameterError) -> Self
fn from(value: RietveldGeneralParameterError) -> Self
Source§impl From<RietveldGeneralRefinementError> for RietveldRecipeError
impl From<RietveldGeneralRefinementError> for RietveldRecipeError
Source§fn from(value: RietveldGeneralRefinementError) -> Self
fn from(value: RietveldGeneralRefinementError) -> Self
Auto Trait Implementations§
impl Freeze for RietveldRecipeError
impl RefUnwindSafe for RietveldRecipeError
impl Send for RietveldRecipeError
impl Sync for RietveldRecipeError
impl Unpin for RietveldRecipeError
impl UnsafeUnpin for RietveldRecipeError
impl UnwindSafe for RietveldRecipeError
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> 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 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>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.