Skip to main content

PlanError

Enum PlanError 

Source
pub enum PlanError {
Show 15 variants WrongModel { spec_model: String, schema_model: String, }, NoReplicates, Measure(MeasureError), Stop(StopError), UnknownAction { id: String, known: Vec<&'static str>, }, DuplicateActionName { name: String, }, Fixed(ValueError), UnknownFixed { id: String, known: Vec<&'static str>, }, FixedAndVaried { id: String, block: usize, }, VariedTwice { target: FactorTarget, block: usize, }, Factor { block: usize, source: FactorError, }, TableWithFactors { block: usize, }, Table { block: usize, source: DesignTableError, }, Design { block: usize, source: DesignError, }, TooManyRuns,
}
Expand description

A sweep spec that cannot be planned against a model.

Variants§

§

WrongModel

A spec for model spec_model, checked against model schema_model.

Fields

§spec_model: String

Model id in the spec.

§schema_model: String

Id of the model the spec was checked against.

§

NoReplicates

A replicate count of 0.

§

Measure(MeasureError)

Run and sampling settings under which a run cannot be measured.

§

Stop(StopError)

A stop condition over no stat label.

§

UnknownAction

An action id the model does not declare.

Fields

§id: String

Action id as given.

§known: Vec<&'static str>

Action ids the model declares.

§

DuplicateActionName

A name that two actions of the spec share.

Fields

§name: String

Name the actions share.

§

Fixed(ValueError)

A fixed value that the model rejects.

§

UnknownFixed

A fixed value for an id that no parameter has.

Fields

§id: String

Parameter id as given.

§known: Vec<&'static str>

Parameter ids the model declares.

§

FixedAndVaried

Parameter id, varied in block block and fixed as well.

Fields

§id: String

Id of the parameter.

§block: usize

Index of the block, counting from 0.

§

VariedTwice

A target varied twice in block block.

Fields

§target: FactorTarget

Parameter or action tick varied twice.

§block: usize

Index of the block, counting from 0.

§

Factor

A rejected factor of block block.

Fields

§block: usize

Index of the block, counting from 0.

§source: FactorError

Reason the factor is rejected.

§

TableWithFactors

A table design in block block that lists its own factors.

Fields

§block: usize

Index of the block, counting from 0.

§

Table

A rejected design table of block block.

Fields

§block: usize

Index of the block, counting from 0.

§source: DesignTableError

Reason the table is rejected.

§

Design

Block block, whose design cannot combine its factors.

Fields

§block: usize

Index of the block, counting from 0.

§source: DesignError

Reason the design cannot combine the factors.

§

TooManyRuns

More runs than MAX_RUNS.

Trait Implementations§

Source§

impl Clone for PlanError

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PlanError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for PlanError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for PlanError

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl PartialEq for PlanError

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for PlanError

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WasmNotSend for T
where T: Send,

Source§

impl<T> WasmNotSync for T
where T: Sync,