pub struct CallFailure {
pub error: ScriptError,
pub commands: Vec<ScriptCommand>,
}Expand description
A ScriptHost::call whose function raised an error.
commands holds what the function queued before it failed, drained from
the sink like a successful call’s. The runtime applies them, the way a
browser keeps the DOM changes a throwing handler made before the throw:
a print placed before the failing line still reaches the log, and a
timer armed there still fires.
Fields§
§error: ScriptErrorThe error the function raised.
commands: Vec<ScriptCommand>Commands queued before the failure.
Trait Implementations§
Source§impl Debug for CallFailure
impl Debug for CallFailure
Source§impl Display for CallFailure
impl Display for CallFailure
Source§impl Error for CallFailure
impl Error for CallFailure
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 CallFailure
impl !RefUnwindSafe for CallFailure
impl Send for CallFailure
impl Sync for CallFailure
impl Unpin for CallFailure
impl UnsafeUnpin for CallFailure
impl !UnwindSafe for CallFailure
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.