Enum rlua::LuaError [] [src]

pub enum LuaError {
    SyntaxError(String),
    IncompleteStatement(String),
    RuntimeError(String),
    ErrorError(String),
    ToLuaConversionError(String),
    FromLuaConversionError(String),
    CoroutineInactive,
    UserDataTypeMismatch,
    UserDataBorrowError,
    UserDataBorrowMutError,
    CallbackError(StringArc<LuaError>),
    ExternalError(Arc<Error + Send + Sync>),
}

Variants

Lua syntax error, aka LUA_ERRSYNTAX that is NOT an incomplete statement.

Lua syntax error that IS an incomplete statement. Useful for implementing a REPL.

Lua runtime error, aka LUA_ERRRUN.

Lua error from inside an error handler, aka LUA_ERRERR.

A generic Rust -> Lua conversion error.

A generic Lua -> Rust conversion error.

A LuaThread was resumed and the coroutine was no longer active.

A LuaUserData is not the expected type in a borrow.

A LuaUserData immutable borrow failed because it is already borrowed mutably.

A LuaUserData mutable borrow failed because it is already borrowed.

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.

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]

Formats the value using the given formatter.

impl Clone for LuaError
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for LuaError
[src]

Formats the value using the given formatter. Read more

impl Error for LuaError
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl<'lua> ToLua<'lua> for LuaError
[src]

Performs the conversion.

impl<'lua> FromLua<'lua> for LuaError
[src]

Performs the conversion.