pub enum End {
Returned(Option<Value>),
Threw(Value),
Stopped(&'static str),
Engine(String),
}Variants§
Returned(Option<Value>)
The script ran to its end; what it returned, if anything.
Threw(Value)
The script threw, or a call it did not catch failed:
{name, message, stack, cmd?, result?}.
Stopped(&'static str)
Stopped from outside: “timeout”, or “unknown_outcome” after a call that must not be followed by another.
Engine(String)
The engine could not run the script at all.
Trait Implementations§
impl StructuralPartialEq for End
Auto Trait Implementations§
impl Forget for End
impl Freeze for End
impl Move for End
impl RefUnwindSafe for End
impl Send for End
impl Sync for End
impl Unpin for End
impl UnsafeUnpin for End
impl UnwindSafe for End
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