pub enum MacroError {
Script(ScriptError),
InvalidResult {
type_name: String,
},
Internal(String),
}Expand description
Errors produced by macro or hook execution.
Variants§
Script(ScriptError)
The script threw an exception.
InvalidResult
The script completed without throwing, but its completion value is not
a string. type_name is the ECMAScript typeof of the value; the
rendered message matches the OverPy reference (src/quickjs.ts).
Internal(String)
Engine setup failure (runtime/context creation, builtin helper install).
Trait Implementations§
Source§impl Clone for MacroError
impl Clone for MacroError
Source§fn clone(&self) -> MacroError
fn clone(&self) -> MacroError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MacroError
impl Debug for MacroError
Source§impl Display for MacroError
impl Display for MacroError
impl Eq for MacroError
Source§impl Error for MacroError
impl Error for MacroError
1.30.0 · 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 PartialEq for MacroError
impl PartialEq for MacroError
impl StructuralPartialEq for MacroError
Auto Trait Implementations§
impl Freeze for MacroError
impl RefUnwindSafe for MacroError
impl Send for MacroError
impl Sync for MacroError
impl Unpin for MacroError
impl UnsafeUnpin for MacroError
impl UnwindSafe for MacroError
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