pub enum LuaError {
MemoryAllocationError,
SyntaxError(Option<String>),
FileError(Option<String>),
RuntimeError(Option<String>),
ErrorHandlerError,
Unknown(LuaInt),
PoisonError,
}
Variants§
MemoryAllocationError
Out of memory
LUA_ERRMEM
SyntaxError(Option<String>)
A syntax error occurred in the passed Lua source code.
LUA_ERRSYNTAX
FileError(Option<String>)
Lua failed to load the given file
LUA_ERRFILE
RuntimeError(Option<String>)
A runtime error occurred while compiling bytecode.
LUA_ERRRUN
ErrorHandlerError
An error occurred while running the error handler function.
LUA_ERRERR
Unknown(LuaInt)
Unknown Lua error code
PoisonError
The Mutex guarding the Lua state is poisoned by a panic in another thread.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LuaError
impl RefUnwindSafe for LuaError
impl Send for LuaError
impl Sync for LuaError
impl Unpin for LuaError
impl UnwindSafe for LuaError
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