Struct libil2cpp::Il2CppException
source · [−]#[repr(transparent)]pub struct Il2CppException(_);
Expand description
An il2cpp exception
Implementations
sourceimpl Il2CppException
impl Il2CppException
sourcepub fn message(&self) -> Option<&Il2CppString>
pub fn message(&self) -> Option<&Il2CppString>
Exception message
sourcepub fn inner_exception(&self) -> Option<&Self>
pub fn inner_exception(&self) -> Option<&Self>
Inner exception
sourcepub fn trace(&self) -> Trace<'_>
pub fn trace(&self) -> Trace<'_>
Iterator over the inner exceptions, starting with the exception itself
sourcepub fn source(&self) -> Option<&Il2CppString>
pub fn source(&self) -> Option<&Il2CppString>
Exception source
Methods from Deref<Target = Il2CppObject>
sourcepub fn class(&self) -> &'static Il2CppClass
pub fn class(&self) -> &'static Il2CppClass
Il2CppClass
of the object
sourcepub fn invoke<A, R, const N: usize>(
&mut self,
name: &str,
args: A
) -> Result<R, &mut Il2CppException> where
A: Arguments<N>,
R: Returned,
pub fn invoke<A, R, const N: usize>(
&mut self,
name: &str,
args: A
) -> Result<R, &mut Il2CppException> where
A: Arguments<N>,
R: Returned,
Invokes the method with the given name on self
using the given
arguments, with type checking
Panics
This method will panic if a matching method can’t be found.
sourcepub fn invoke_void<A, const N: usize>(
&mut self,
name: &str,
args: A
) -> Result<(), &mut Il2CppException> where
A: Arguments<N>,
pub fn invoke_void<A, const N: usize>(
&mut self,
name: &str,
args: A
) -> Result<(), &mut Il2CppException> where
A: Arguments<N>,
Invokes the void
method with the given name on self
using the
given arguments, with type checking
Panics
This method will panic if a matching method can’t be found.
Trait Implementations
sourceimpl Debug for Il2CppException
impl Debug for Il2CppException
sourceimpl Deref for Il2CppException
impl Deref for Il2CppException
type Target = Il2CppObject
type Target = Il2CppObject
The resulting type after dereferencing.
sourceimpl DerefMut for Il2CppException
impl DerefMut for Il2CppException
sourceimpl Display for Il2CppException
impl Display for Il2CppException
sourceimpl Error for Il2CppException
impl Error for Il2CppException
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl Error for &mut Il2CppException
impl Error for &mut Il2CppException
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl WrapRaw for Il2CppException
impl WrapRaw for Il2CppException
type Raw = Il2CppException
type Raw = Il2CppException
Raw il2cpp type
sourceunsafe fn raw_mut(&mut self) -> &mut Self::Raw
unsafe fn raw_mut(&mut self) -> &mut Self::Raw
Returns a mutable reference to the underlying raw il2cpp type Read more
sourceunsafe fn wrap_mut(raw: &mut Self::Raw) -> &mut Self
unsafe fn wrap_mut(raw: &mut Self::Raw) -> &mut Self
Wraps a mutable reference to the raw il2cpp type Read more
Auto Trait Implementations
impl RefUnwindSafe for Il2CppException
impl !Send for Il2CppException
impl !Sync for Il2CppException
impl Unpin for Il2CppException
impl UnwindSafe for Il2CppException
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