pub struct TryCatch<This, J>{ /* private fields */ }Trait Implementations§
source§impl<This, J> JvmOp for TryCatch<This, J>
impl<This, J> JvmOp for TryCatch<This, J>
type Output<'jvm> = Result<<This as JvmOp>::Output<'jvm>, Local<'jvm, J>>
source§fn do_jni<'jvm>(
self,
jvm: &mut Jvm<'jvm>,
) -> LocalResult<'jvm, Self::Output<'jvm>>
fn do_jni<'jvm>( self, jvm: &mut Jvm<'jvm>, ) -> LocalResult<'jvm, Self::Output<'jvm>>
Internal method
fn assert_not_null<T>(self) -> NotNull<Self>
source§fn upcast<To>(self) -> AsUpcast<Self, To>
fn upcast<To>(self) -> AsUpcast<Self, To>
Most duchess-wrapped Java objects will automatically be able to call all
methods defined on any of its super classes or interfaces it implements,
but this can be used to “force” the output of the operation to be typed
as an explicit super type
To.fn catch<J>(self) -> TryCatch<Self, J>where
J: Upcast<Throwable>,
source§fn execute<R>(self) -> Result<R>
fn execute<R>(self) -> Result<R>
Execute on the JVM, starting a JVM instance if necessary. Read more
source§fn execute_with<'jvm, R>(self, jvm: &mut Jvm<'jvm>) -> LocalResult<'jvm, R>
fn execute_with<'jvm, R>(self, jvm: &mut Jvm<'jvm>) -> LocalResult<'jvm, R>
Internal method
impl<This, J> Copy for TryCatch<This, J>
Auto Trait Implementations§
impl<This, J> Freeze for TryCatch<This, J>where
This: Freeze,
impl<This, J> RefUnwindSafe for TryCatch<This, J>where
This: RefUnwindSafe,
J: RefUnwindSafe,
impl<This, J> Send for TryCatch<This, J>
impl<This, J> Sync for TryCatch<This, J>
impl<This, J> Unpin for TryCatch<This, J>
impl<This, J> UnwindSafe for TryCatch<This, J>where
This: UnwindSafe,
J: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)