pub struct JPanicException<'a: 'b, 'b> { /* private fields */ }
Expand description
Implementations§
Source§impl<'a: 'b, 'b> JPanicException<'a, 'b>
impl<'a: 'b, 'b> JPanicException<'a, 'b>
Sourcepub fn from_env(env: &'b JNIEnv<'a>, obj: JThrowable<'a>) -> Result<Self, Error>
pub fn from_env(env: &'b JNIEnv<'a>, obj: JThrowable<'a>) -> Result<Self, Error>
Create a JPanicException
from the environment and an object. This
looks up the necessary class and method IDs to call all of the methods
on it so that extra work doesn’t need to be done on every method call.
§Arguments
env
- Java environment to use.obj
- Object to wrap.
Sourcepub fn get(
&self,
) -> Result<MutexGuard<'_, Box<dyn Any + Send + 'static>>, Error>
pub fn get( &self, ) -> Result<MutexGuard<'_, Box<dyn Any + Send + 'static>>, Error>
Borrows the Any
associated with the exception.
Trait Implementations§
Source§impl<'a: 'b, 'b> Deref for JPanicException<'a, 'b>
impl<'a: 'b, 'b> Deref for JPanicException<'a, 'b>
Source§impl<'a: 'b, 'b> From<JPanicException<'a, 'b>> for JThrowable<'a>
impl<'a: 'b, 'b> From<JPanicException<'a, 'b>> for JThrowable<'a>
Source§fn from(ex: JPanicException<'a, 'b>) -> Self
fn from(ex: JPanicException<'a, 'b>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a, 'b> Freeze for JPanicException<'a, 'b>
impl<'a, 'b> RefUnwindSafe for JPanicException<'a, 'b>
impl<'a, 'b> !Send for JPanicException<'a, 'b>
impl<'a, 'b> !Sync for JPanicException<'a, 'b>
impl<'a, 'b> Unpin for JPanicException<'a, 'b>
impl<'a, 'b> UnwindSafe for JPanicException<'a, 'b>
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