#[non_exhaustive]pub enum BuildError {
InvalidId {
id: String,
reason: &'static str,
},
DuplicateKnotId {
knot_id: String,
},
ForeignHandle,
UnknownPort {
knot_id: String,
port: String,
expected: Vec<String>,
},
WrongPortDirection {
knot_id: String,
port: String,
expected: PortDir,
actual: PortDir,
},
UnknownExport {
instance_id: String,
export: String,
direction: PortDir,
},
NumericMismatch {
expected: NumericPath,
actual: NumericPath,
},
SignalDomainMismatch {
from_knot: String,
from_port: String,
from_domain: SignalDomain,
to_knot: String,
to_port: String,
to_domain: SignalDomain,
},
RepresentationOverflow {
what: &'static str,
actual: usize,
limit: usize,
},
Validation(ValidationError),
}Expand description
An authoring operation failed before final graph validation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidId
A weave, knot, or pattern instance id fails non-empty / character rules during authoring.
Fields
DuplicateKnotId
WeaveBuilder::knot or include would introduce a duplicate knot id.
ForeignHandle
A knot handle or port belongs to a different crate::WeaveBuilder than the current one.
UnknownPort
input, output, or slot_of names a port not declared for that knot kind.
Fields
WrongPortDirection
The named port exists but was requested with the wrong direction.
Fields
UnknownExport
PatternInstance::input or output names an export not defined by the pattern.
Fields
NumericMismatch
include finds the pattern’s numeric path differs from the parent builder.
Fields
expected: NumericPathNumeric path configured on the parent builder.
actual: NumericPathNumeric path stored on the included pattern.
SignalDomainMismatch
connect would join ports with incompatible fixed signal domains.
Fields
from_domain: SignalDomainFixed domain on the output side.
to_domain: SignalDomainFixed domain required on the input side.
RepresentationOverflow
Authoring would exceed knot-index or owner-token representation limits.
Fields
Validation(ValidationError)
A fallible authoring step failed graph validation (via From<ValidationError>).
Trait Implementations§
Source§impl Clone for BuildError
impl Clone for BuildError
Source§fn clone(&self) -> BuildError
fn clone(&self) -> BuildError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BuildError
impl Debug for BuildError
Source§impl Display for BuildError
impl Display for BuildError
impl Eq for BuildError
Source§impl Error for BuildError
Available on crate feature std only.
impl Error for BuildError
std only.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()