#[repr(i32)]pub enum PCallError {
RuntimeError = 2,
MemoryError = 4,
ErrorHandlerError = 5,
}Expand description
All error codes that a function may return when erroring while called in protected mode.
This enum is used by the following functions:
Variants§
RuntimeError = 2
Any error during runtime.
MemoryError = 4
Memory allocation error (rare).
(LuaState::pcall will not call the error handler for these errors.)
ErrorHandlerError = 5
Error while calling the error handler.
Implementations§
Trait Implementations§
Source§impl Debug for PCallError
impl Debug for PCallError
Source§impl Display for PCallError
impl Display for PCallError
Source§impl Error for PCallError
impl Error for PCallError
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()
Auto Trait Implementations§
impl Freeze for PCallError
impl RefUnwindSafe for PCallError
impl Send for PCallError
impl Sync for PCallError
impl Unpin for PCallError
impl UnsafeUnpin for PCallError
impl UnwindSafe for PCallError
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