pub type LocalObject<'env, T> = Object<LocalRef<'env>, T>;Expand description
A local reference to an object with a specific type.
Aliased Type§
pub struct LocalObject<'env, T> { /* private fields */ }Trait Implementations§
Source§impl<'env, T: ObjectType> Got<'env> for LocalObject<'env, T>
impl<'env, T: ObjectType> Got<'env> for LocalObject<'env, T>
Source§impl<'env, Type: ObjectType> Target<'env> for LocalObject<'env, Type>
impl<'env, Type: ObjectType> Target<'env> for LocalObject<'env, Type>
Source§unsafe fn call<const STATIC: bool, const N_ARGS: usize, T: StrongRef>(
env: &'env JNIEnv<'_>,
this: &T,
method: MethodID<STATIC>,
args: [Arg<'_>; N_ARGS],
) -> Result<Self, LocalObject<'env, JavaThrowable>>
unsafe fn call<const STATIC: bool, const N_ARGS: usize, T: StrongRef>( env: &'env JNIEnv<'_>, this: &T, method: MethodID<STATIC>, args: [Arg<'_>; N_ARGS], ) -> Result<Self, LocalObject<'env, JavaThrowable>>
Call a method with a fixed number of arguments. Read more
Source§unsafe fn call_variadic<'a, const STATIC: bool, T: StrongRef, Args: IntoIterator<Item = Arg<'a>>>(
env: &'env JNIEnv<'_>,
this: &T,
method: MethodID<STATIC>,
args: Args,
) -> Result<Self, LocalObject<'env, JavaThrowable>>
unsafe fn call_variadic<'a, const STATIC: bool, T: StrongRef, Args: IntoIterator<Item = Arg<'a>>>( env: &'env JNIEnv<'_>, this: &T, method: MethodID<STATIC>, args: Args, ) -> Result<Self, LocalObject<'env, JavaThrowable>>
Call a method with a variable number of arguments. Read more