Enum rlua::LuaError
[−]
[src]
pub enum LuaError { SyntaxError(LuaSyntaxError), RuntimeError(String), ErrorError(String), ConversionError(LuaConversionError), StackOverflow, CoroutineInactive, UserDataError(LuaUserDataError), CallbackError(String, Arc<LuaError>), ExternalError(Arc<Error + Send + Sync>), }
Variants
SyntaxError(LuaSyntaxError)
Lua syntax error, aka LUA_ERRSYNTAX.
RuntimeError(String)
Lua runtime error, aka LUA_ERRRUN.
ErrorError(String)
Lua error from inside an error handler, aka LUA_ERRERR.
ConversionError(LuaConversionError)
An error resulting from a Lua <-> Rust type conversion
StackOverflow
Insufficient Lua stack space.
CoroutineInactive
A LuaThread
was resumed and the coroutine was no longer active.
UserDataError(LuaUserDataError)
A LuaUserData
borrow of the internal value failed.
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
impl From<LuaSyntaxError> for LuaError
[src]
fn from(err: LuaSyntaxError) -> LuaError
Performs the conversion.
impl From<LuaConversionError> for LuaError
[src]
fn from(err: LuaConversionError) -> LuaError
Performs the conversion.
impl From<LuaUserDataError> for LuaError
[src]
fn from(err: LuaUserDataError) -> LuaError
Performs the conversion.