#[non_exhaustive]pub enum ErrorKind {
ComponentNotFound,
Internal,
InvalidComponent,
InvalidConnection,
InvalidGraph,
ValidationErrors(Vec<ValidationError>),
}Expand description
The kind of an Error.
Marked #[non_exhaustive]: matching on this enum from outside the crate
must include a wildcard arm, so future kinds can be added without a
breaking change.
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.
ComponentNotFound
No component was found for a given component ID.
Internal
An internal invariant of the library was violated. This indicates a bug.
InvalidComponent
A component is invalid, e.g. it has an unspecified category.
InvalidConnection
A connection between two components is invalid.
InvalidGraph
The graph is structurally invalid, e.g. it has no grid component, several grid components, or a duplicate component ID.
ValidationErrors(Vec<ValidationError>)
One or more checks failed while validating an otherwise well-formed
graph. Holds every ValidationError that was collected.
Trait Implementations§
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
impl UnwindSafe for ErrorKind
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