Struct rlua::LuaError []

pub struct LuaError(pub LuaErrorKind, _);

The Error type.

This tuple struct is made of two elements:

  • an ErrorKind which is used to determine the type of the error.
  • An internal State, not meant for direct use outside of error_chain internals, containing:
    • a backtrace, generated when the error is created.
    • an error chain, used for the implementation of Error::cause().

Methods

impl LuaError

Constructs an error from a kind, and generates a backtrace.

Constructs a chained error from another error and a kind, and generates a backtrace.

Returns the kind of the error.

Iterates over the error chain.

Returns the backtrace associated with this error.

Methods from Deref<Target = LuaErrorKind>

A string describing the error kind.

Trait Implementations

impl Debug for LuaError

Formats the value using the given formatter.

impl ChainedError for LuaError

Associated kind type.

Constructs an error from a kind, and generates a backtrace.

Constructs a chained error from another error and a kind, and generates a backtrace.

Returns the kind of the error.

Iterates over the error chain.

Returns the backtrace associated with this error.

Returns an object which implements Display for printing the full context of this error. Read more

impl Error for LuaError

A short description of the error. Read more

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

impl Display for LuaError

Formats the value using the given formatter. Read more

impl From<LuaExternalError> for LuaError

Performs the conversion.

impl From<Utf8Error> for LuaError

Performs the conversion.

impl From<NulError> for LuaError

Performs the conversion.

impl From<BorrowError> for LuaError

Performs the conversion.

impl From<BorrowMutError> for LuaError

Performs the conversion.

impl From<LuaErrorKind> for LuaError

Performs the conversion.

impl<'a> From<&'a str> for LuaError

Performs the conversion.

impl From<String> for LuaError

Performs the conversion.

impl Deref for LuaError

The resulting type after dereferencing

The method called to dereference a value