pub struct JvmAttachment { /* private fields */ }Expand description
A native thread’s attachment to an embedded JVM.
There should be only exactly one JvmAttachment instance at the same time.
The thread is automatically detached when JvmAttachment goes out of scope (RAII).
Implementations§
Source§impl JvmAttachment
impl JvmAttachment
Sourcepub fn new(jvm: *mut JavaVM) -> JvmAttachment
pub fn new(jvm: *mut JavaVM) -> JvmAttachment
Sourcepub fn jni_environment(&self) -> *mut JNIEnv
pub fn jni_environment(&self) -> *mut JNIEnv
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JvmAttachment
impl RefUnwindSafe for JvmAttachment
impl !Send for JvmAttachment
impl !Sync for JvmAttachment
impl Unpin for JvmAttachment
impl UnwindSafe for JvmAttachment
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