Trait jni::descriptors::Desc
[−]
[src]
pub trait Desc<'a, T> { fn lookup(self, _: &JNIEnv<'a>) -> Result<T>; }
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
Implementors
impl<'a, T> Desc<'a, T> for T
impl<'a, T> Desc<'a, JClass<'a>> for T where T: Into<JNIString>
impl<'a, T, U, V> Desc<'a, JMethodID<'a>> for (T, U, V) where T: Desc<'a, JClass<'a>>,
U: Into<JNIString>,
V: Into<JNIString>impl<'a, T, U, V> Desc<'a, JStaticMethodID<'a>> for (T, U, V) where T: Desc<'a, JClass<'a>>,
U: Into<JNIString>,
V: Into<JNIString>impl<'a, T, U, V> Desc<'a, JFieldID<'a>> for (T, U, V) where T: Desc<'a, JClass<'a>>,
U: Into<JNIString>,
V: Into<JNIString>