Enum tlua::MethodCallError
source · [−]pub enum MethodCallError<E> {
NoSuchMethod,
LuaError(LuaError),
PushError(E),
}Variants
NoSuchMethod
The corresponding method was not found (t[k] == nil)
LuaError(LuaError)
Error during function call
PushError(E)
Pushing arguments failed
Trait Implementations
sourceimpl<E: Debug> Debug for MethodCallError<E>
impl<E: Debug> Debug for MethodCallError<E>
sourceimpl<E> Display for MethodCallError<E> where
E: Display,
impl<E> Display for MethodCallError<E> where
E: Display,
sourceimpl<E> Error for MethodCallError<E> where
E: Error,
impl<E> Error for MethodCallError<E> where
E: Error,
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
Auto Trait Implementations
impl<E> RefUnwindSafe for MethodCallError<E> where
E: RefUnwindSafe,
impl<E> Send for MethodCallError<E> where
E: Send,
impl<E> Sync for MethodCallError<E> where
E: Sync,
impl<E> Unpin for MethodCallError<E> where
E: Unpin,
impl<E> UnwindSafe for MethodCallError<E> where
E: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more