#[non_exhaustive]pub enum CatchError {
Bailout,
NullPanicPtr,
Panic(String),
}Expand description
Error returned when the engine did not run the closure to completion.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Bailout
The engine bailed out, unwinding past the closure.
NullPanicPtr
The closure result was never written back.
Panic(String)
The closure panicked. Holds the panic message; the frames inside the closure have already been unwound and their destructors run.
Trait Implementations§
Source§impl Debug for CatchError
impl Debug for CatchError
Source§impl Display for CatchError
impl Display for CatchError
Source§impl Error for CatchError
impl Error for CatchError
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 From<CatchError> for Error
impl From<CatchError> for Error
Source§fn from(source: CatchError) -> Self
fn from(source: CatchError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CatchError
impl RefUnwindSafe for CatchError
impl Send for CatchError
impl Sync for CatchError
impl Unpin for CatchError
impl UnsafeUnpin for CatchError
impl UnwindSafe for CatchError
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