#[non_exhaustive]pub enum BindError {
InvalidWeave {
weave_id: String,
source: ValidationError,
},
CapacityExceeded {
weave_id: String,
resource: &'static str,
count: usize,
},
InvalidReference {
weave_id: String,
knot: String,
port: String,
},
InvalidTopology {
weave_id: String,
},
}Expand description
Failure while turning an authored crate::authoring::Weave into a runtime.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidWeave
The consumed weave failed graph validation.
Fields
§
source: ValidationErrorStructural validation failure from ValidationError.
CapacityExceeded
A validated weave exceeded a dense runtime representation.
Fields
InvalidReference
Validated graph data could not be resolved during binding.
Fields
InvalidTopology
The validated topology could not be ordered.
Trait Implementations§
impl Eq for BindError
Source§impl Error for BindError
Available on crate feature std only.
impl Error for BindError
Available on crate feature
std only.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<BindError> for RecipeError
impl From<BindError> for RecipeError
impl StructuralPartialEq for BindError
Auto Trait Implementations§
impl Freeze for BindError
impl RefUnwindSafe for BindError
impl Send for BindError
impl Sync for BindError
impl Unpin for BindError
impl UnsafeUnpin for BindError
impl UnwindSafe for BindError
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