[][src]Trait uni_tmp_jni::descriptors::Desc

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

fn lookup(self, _: &JNIEnv<'a>) -> Result<T>

Look up the concrete type from the JVM.

Loading content...

Implementations on Foreign Types

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>, 
[src]

impl<'a, 'c, T, Signature> Desc<'a, JMethodID<'a>> for (T, Signature) where
    T: Desc<'a, JClass<'c>>,
    Signature: Into<JNIString>, 
[src]

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>, 
[src]

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>, 
[src]

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>, 
[src]

impl<'a, 'c, C, M> Desc<'a, JThrowable<'a>> for (C, M) where
    C: Desc<'a, JClass<'c>>,
    M: Into<JNIString>, 
[src]

impl<'a, 'b> Desc<'a, JThrowable<'a>> for &'b str[src]

impl<'a> Desc<'a, JThrowable<'a>> for String[src]

Loading content...

Implementors

impl<'a> Desc<'a, JThrowable<'a>> for Exception[src]

impl<'a, 'b> Desc<'a, JClass<'a>> for JObject<'b>[src]

impl<'a, 'b> Desc<'a, JClass<'b>> for &'b GlobalRef[src]

This conversion assumes that the GlobalRef is a pointer to a class object.

impl<'a, 'b> Desc<'a, JThrowable<'a>> for JNIString[src]

impl<'a, 'b, 'c, '_> Desc<'a, JClass<'b>> for &'b AutoLocal<'c, '_> where
    'c: 'b, 
[src]

This conversion assumes that the AutoLocal is a pointer to a class object.

impl<'a, T> Desc<'a, JClass<'a>> for T where
    T: Into<JNIString>, 
[src]

impl<'a, T> Desc<'a, T> for T[src]

Loading content...