pub enum CircuitSpecError {
SchemaVersion {
found: u32,
expected: u32,
},
EmptyField(&'static str),
NoMembers,
InvalidBoundary(String),
AreaNotAllowed {
area_id: String,
expected: &'static str,
},
InvalidStimulus(String),
InvalidMetric(String),
InvalidConstraint(String),
InvalidSearchSpace(String),
}Expand description
Contract violation found by CircuitObjectiveSpec::validate.
Variants§
SchemaVersion
schema_version is not SCHEMA_VERSION.
EmptyField(&'static str)
A required string field is empty or whitespace.
NoMembers
The circuit has no member areas.
InvalidBoundary(String)
The boundary breaks an invariant.
AreaNotAllowed
An area is referenced where it is not allowed.
InvalidStimulus(String)
The stimulus protocol breaks an invariant.
InvalidMetric(String)
The metric breaks an invariant.
InvalidConstraint(String)
A constraint breaks an invariant.
InvalidSearchSpace(String)
The search space breaks an invariant.
Trait Implementations§
Source§impl Clone for CircuitSpecError
impl Clone for CircuitSpecError
Source§impl Debug for CircuitSpecError
impl Debug for CircuitSpecError
Source§impl Display for CircuitSpecError
impl Display for CircuitSpecError
impl Eq for CircuitSpecError
Source§impl Error for CircuitSpecError
impl Error for CircuitSpecError
1.30.0 · 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 PartialEq for CircuitSpecError
impl PartialEq for CircuitSpecError
impl StructuralPartialEq for CircuitSpecError
Auto Trait Implementations§
impl Freeze for CircuitSpecError
impl RefUnwindSafe for CircuitSpecError
impl Send for CircuitSpecError
impl Sync for CircuitSpecError
impl Unpin for CircuitSpecError
impl UnsafeUnpin for CircuitSpecError
impl UnwindSafe for CircuitSpecError
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<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