pub struct NativeMethod {
pub name: String,
pub descriptor: String,
}Expand description
One method to declare native on the generated class.
Fields§
§name: StringThe Java name, e.g. onConnectionStateChange.
descriptor: StringA JNI type descriptor, e.g. (Landroid/bluetooth/BluetoothGatt;II)V.
Implementations§
Trait Implementations§
Source§impl Clone for NativeMethod
impl Clone for NativeMethod
Auto Trait Implementations§
impl Forget for NativeMethod
impl Freeze for NativeMethod
impl Move for NativeMethod
impl RefUnwindSafe for NativeMethod
impl Send for NativeMethod
impl Sync for NativeMethod
impl Unpin for NativeMethod
impl UnsafeUnpin for NativeMethod
impl UnwindSafe for NativeMethod
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more