Struct jni::NativeMethod[][src]

pub struct NativeMethod {
    pub name: JNIString,
    pub sig: JNIString,
    pub fn_ptr: *mut c_void,
}
Expand description

Native method descriptor.

Fields

name: JNIString

Name of method.

sig: JNIString

Method signature.

fn_ptr: *mut c_void

Pointer to native function with signature fn(env: JNIEnv, class: JClass, ...arguments according to sig) -> RetType for static methods or fn(env: JNIEnv, object: JObject, ...arguments according to sig) -> RetType for instance methods.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.