pub enum A2uiError {
Validation(String),
Parse(Error),
SurfaceExists(String),
SurfaceNotFound(String),
ComponentNotFound(String),
InvalidFunctionCall(String),
InvalidPointer(String),
CatalogNotFound(String),
MissingProperty {
component: String,
property: String,
},
TypeMismatch(String),
NoNativeImplementation(String),
Io(Error),
}Expand description
Unified error type for all A2UI operations.
Variants§
Validation(String)
Parse(Error)
SurfaceExists(String)
SurfaceNotFound(String)
ComponentNotFound(String)
InvalidFunctionCall(String)
InvalidPointer(String)
CatalogNotFound(String)
MissingProperty
TypeMismatch(String)
NoNativeImplementation(String)
Io(Error)
Trait Implementations§
Source§impl Error for A2uiError
impl Error for A2uiError
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 !RefUnwindSafe for A2uiError
impl !UnwindSafe for A2uiError
impl Freeze for A2uiError
impl Send for A2uiError
impl Sync for A2uiError
impl Unpin for A2uiError
impl UnsafeUnpin for A2uiError
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