Enum rlua::LuaError
[−]
[src]
pub enum LuaError { SyntaxError(String), IncompleteStatement(String), RuntimeError(String), ErrorError(String), ToLuaConversionError(String), FromLuaConversionError(String), CoroutineInactive, UserDataTypeMismatch, UserDataBorrowError, UserDataBorrowMutError, CallbackError(String, Arc<LuaError>), ExternalError(Arc<Error + Send + Sync>), }
Variants
SyntaxError(String)
Lua syntax error, aka LUA_ERRSYNTAX
that is NOT an incomplete statement.
IncompleteStatement(String)
Lua syntax error that IS an incomplete statement. Useful for implementing a REPL.
RuntimeError(String)
Lua runtime error, aka LUA_ERRRUN
.
ErrorError(String)
Lua error from inside an error handler, aka LUA_ERRERR
.
ToLuaConversionError(String)
A generic Rust -> Lua conversion error.
FromLuaConversionError(String)
A generic Lua -> Rust conversion error.
CoroutineInactive
A LuaThread
was resumed and the coroutine was no longer active.
UserDataTypeMismatch
A LuaUserData
is not the expected type in a borrow.
UserDataBorrowError
A LuaUserData
immutable borrow failed because it is already borrowed mutably.
UserDataBorrowMutError
A LuaUserData
mutable borrow failed because it is already borrowed.
CallbackError(String, Arc<LuaError>)
Lua error that originated as a LuaError in a callback. The first field is the lua error as a string, the second field is the Arc holding the original LuaError.
ExternalError(Arc<Error + Send + Sync>)
Any custom external error type, mostly useful for returning external error types from callbacks.
Methods
impl LuaError
[src]
Trait Implementations
impl Debug for LuaError
[src]
impl Clone for LuaError
[src]
fn clone(&self) -> LuaError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Display for LuaError
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl Error for LuaError
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more