pub enum SceneError {
Yaml(Error),
InvalidVersion(String),
DuplicateWidgetId(String),
InvalidBindingTarget {
trigger: String,
target: String,
},
InvalidHashFormat {
resource: String,
hash: String,
},
MissingRemoteHash {
resource: String,
},
InvalidExpression {
context: String,
expression: String,
message: String,
},
InvalidMetadataName(String),
LayoutError(String),
}Expand description
Error type for scene parsing and validation.
Variants§
Yaml(Error)
YAML parsing error
InvalidVersion(String)
Invalid prs_version format
DuplicateWidgetId(String)
Duplicate widget ID
InvalidBindingTarget
Invalid binding target (references non-existent widget)
InvalidHashFormat
Invalid hash format
MissingRemoteHash
Missing required hash for remote resource
InvalidExpression
Invalid expression syntax
Fields
InvalidMetadataName(String)
Invalid metadata name (must be kebab-case)
LayoutError(String)
Layout validation error
Trait Implementations§
Source§impl Debug for SceneError
impl Debug for SceneError
Source§impl Display for SceneError
impl Display for SceneError
Source§impl Error for SceneError
impl Error for SceneError
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()
Auto Trait Implementations§
impl Freeze for SceneError
impl !RefUnwindSafe for SceneError
impl Send for SceneError
impl Sync for SceneError
impl Unpin for SceneError
impl !UnwindSafe for SceneError
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