Enum red4ext_rs::InvokeError
source · pub enum InvokeError {
FunctionNotFound(&'static str),
ClassNotFound(&'static str),
MethodNotFound(&'static str, Box<[CName]>),
InvalidArgCount {
function: &'static str,
expected: u32,
},
ArgMismatch {
function: &'static str,
expected: &'static str,
index: usize,
},
ReturnMismatch {
function: &'static str,
expected: &'static str,
},
UnresolvedType(&'static str),
ExecutionFailed(&'static str),
NullReceiver(&'static str),
}
Expand description
An error returned when invoking a function fails.
Variants§
FunctionNotFound(&'static str)
ClassNotFound(&'static str)
MethodNotFound(&'static str, Box<[CName]>)
InvalidArgCount
ArgMismatch
ReturnMismatch
UnresolvedType(&'static str)
ExecutionFailed(&'static str)
NullReceiver(&'static str)
Trait Implementations§
source§impl Debug for InvokeError
impl Debug for InvokeError
source§impl Display for InvokeError
impl Display for InvokeError
source§impl Error for InvokeError
impl Error for InvokeError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for InvokeError
impl RefUnwindSafe for InvokeError
impl Send for InvokeError
impl Sync for InvokeError
impl Unpin for InvokeError
impl UnwindSafe for InvokeError
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