Struct rust_jni::AttachArguments [−][src]
pub struct AttachArguments<'a> { /* fields omitted */ }
Arguments for attaching a thread to the JVM.
Example
use rust_jni::{AttachArguments, InitArguments, JniVersion}; let options = InitArguments::get_default(JniVersion::V8).unwrap(); let attach_arguments = AttachArguments::new(&options); assert_eq!(attach_arguments.version(), JniVersion::V8);
Methods
impl<'a> AttachArguments<'a>
[src]
impl<'a> AttachArguments<'a>
pub fn new(init_arguments: &InitArguments) -> Self
[src]
pub fn new(init_arguments: &InitArguments) -> Self
Create attach arguments with the default thread name.
pub fn named(init_arguments: &InitArguments, thread_name: &'a str) -> Self
[src]
pub fn named(init_arguments: &InitArguments, thread_name: &'a str) -> Self
Create attach arguments with a specified thread name.
pub fn version(&self) -> JniVersion
[src]
pub fn version(&self) -> JniVersion
Return the JNI version these arguments will request when attaching a thread to a Java VM.
Trait Implementations
impl<'a> Debug for AttachArguments<'a>
[src]
impl<'a> Debug for AttachArguments<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> PartialEq for AttachArguments<'a>
[src]
impl<'a> PartialEq for AttachArguments<'a>
fn eq(&self, other: &AttachArguments<'a>) -> bool
[src]
fn eq(&self, other: &AttachArguments<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &AttachArguments<'a>) -> bool
[src]
fn ne(&self, other: &AttachArguments<'a>) -> bool
This method tests for !=
.
impl<'a> Eq for AttachArguments<'a>
[src]
impl<'a> Eq for AttachArguments<'a>
Auto Trait Implementations
impl<'a> Send for AttachArguments<'a>
impl<'a> Send for AttachArguments<'a>
impl<'a> Sync for AttachArguments<'a>
impl<'a> Sync for AttachArguments<'a>