pub enum CallError<E> {
LuaError(LuaError),
PushError(E),
}
Expand description
Error that can happen when calling a type implementing Call
.
Variants§
LuaError(LuaError)
Error while executing the function.
PushError(E)
Error while pushing one of the parameters.
Implementations§
Trait Implementations§
source§impl<E> Error for CallError<E>where
E: Error,
impl<E> Error for CallError<E>where
E: Error,
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§impl<E> From<CallError<E>> for MethodCallError<E>
impl<E> From<CallError<E>> for MethodCallError<E>
Auto Trait Implementations§
impl<E> !RefUnwindSafe for CallError<E>
impl<E> Send for CallError<E>where
E: Send,
impl<E> Sync for CallError<E>where
E: Sync,
impl<E> Unpin for CallError<E>where
E: Unpin,
impl<E> !UnwindSafe for CallError<E>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more