Trait jni::descriptors::Desc
source · [−]Expand description
Trait for things that can be looked up through the JNI via a descriptor.
This will be something like the fully-qualified class name
java/lang/String
or a tuple containing a class descriptor, method name,
and method signature. For convenience, this is also implemented for the
concrete types themselves in addition to their descriptors.
Required methods
Implementations on Foreign Types
sourceimpl<'a, 'c, T, U, V> Desc<'a, JMethodID<'a>> for (T, U, V) where
T: Desc<'a, JClass<'c>>,
U: Into<JNIString>,
V: Into<JNIString>,
impl<'a, 'c, T, U, V> Desc<'a, JMethodID<'a>> for (T, U, V) where
T: Desc<'a, JClass<'c>>,
U: Into<JNIString>,
V: Into<JNIString>,
sourceimpl<'a, 'c, T, Signature> Desc<'a, JMethodID<'a>> for (T, Signature) where
T: Desc<'a, JClass<'c>>,
Signature: Into<JNIString>,
impl<'a, 'c, T, Signature> Desc<'a, JMethodID<'a>> for (T, Signature) where
T: Desc<'a, JClass<'c>>,
Signature: Into<JNIString>,
sourceimpl<'a, 'c, T, U, V> Desc<'a, JStaticMethodID<'a>> for (T, U, V) where
T: Desc<'a, JClass<'c>>,
U: Into<JNIString>,
V: Into<JNIString>,
impl<'a, 'c, T, U, V> Desc<'a, JStaticMethodID<'a>> for (T, U, V) where
T: Desc<'a, JClass<'c>>,
U: Into<JNIString>,
V: Into<JNIString>,
fn lookup(self, env: &JNIEnv<'a>) -> Result<JStaticMethodID<'a>>
sourceimpl<'a, 'c, T, U, V> Desc<'a, JFieldID<'a>> for (T, U, V) where
T: Desc<'a, JClass<'c>>,
U: Into<JNIString>,
V: Into<JNIString>,
impl<'a, 'c, T, U, V> Desc<'a, JFieldID<'a>> for (T, U, V) where
T: Desc<'a, JClass<'c>>,
U: Into<JNIString>,
V: Into<JNIString>,
sourceimpl<'a, 'c, T, U, V> Desc<'a, JStaticFieldID<'a>> for (T, U, V) where
T: Desc<'a, JClass<'c>>,
U: Into<JNIString>,
V: Into<JNIString>,
impl<'a, 'c, T, U, V> Desc<'a, JStaticFieldID<'a>> for (T, U, V) where
T: Desc<'a, JClass<'c>>,
U: Into<JNIString>,
V: Into<JNIString>,
fn lookup(self, env: &JNIEnv<'a>) -> Result<JStaticFieldID<'a>>
sourceimpl<'a, 'c, C, M> Desc<'a, JThrowable<'a>> for (C, M) where
C: Desc<'a, JClass<'c>>,
M: Into<JNIString>,
impl<'a, 'c, C, M> Desc<'a, JThrowable<'a>> for (C, M) where
C: Desc<'a, JClass<'c>>,
M: Into<JNIString>,
fn lookup(self, env: &JNIEnv<'a>) -> Result<JThrowable<'a>>
sourceimpl<'a, 'b> Desc<'a, JThrowable<'a>> for &'b str
impl<'a, 'b> Desc<'a, JThrowable<'a>> for &'b str
fn lookup(self, env: &JNIEnv<'a>) -> Result<JThrowable<'a>>
sourceimpl<'a> Desc<'a, JThrowable<'a>> for String
impl<'a> Desc<'a, JThrowable<'a>> for String
fn lookup(self, env: &JNIEnv<'a>) -> Result<JThrowable<'a>>
Implementors
impl<'a> Desc<'a, JThrowable<'a>> for Exception
impl<'a, 'b> Desc<'a, JClass<'a>> for JObject<'b>
impl<'a, 'b> Desc<'a, JClass<'b>> for &'b GlobalRef
This conversion assumes that the GlobalRef
is a pointer to a class object.
impl<'a, 'b> Desc<'a, JThrowable<'a>> for JNIString
impl<'a, 'b, 'c> Desc<'a, JClass<'b>> for &'b AutoLocal<'c, '_> where
'c: 'b,
This conversion assumes that the AutoLocal
is a pointer to a class object.