dioxus/packages/rsx_interpreter/src/error.rs

17 lines
389 B
Rust
Raw Normal View History

use serde::{Deserialize, Serialize};
2022-06-12 01:06:50 +00:00
/// An error produced when interperting the rsx
2022-05-29 13:04:08 +00:00
#[derive(Debug)]
pub enum Error {
ParseError(syn::Error),
RecompileRequiredError(RecompileReason),
}
#[derive(Debug, Serialize, Deserialize)]
2022-05-29 13:04:08 +00:00
pub enum RecompileReason {
CapturedVariable(String),
CapturedExpression(String),
CapturedComponent(String),
CapturedListener(String),
}