[]Struct jni_android_sys::java::lang::Thread

#[repr(transparent)]
pub struct Thread(_);

public class Thread

Required feature: java-lang-Thread

Methods

impl Thread

pub fn new<'env>(__jni_env: &'env Env) -> Result<Local<'env, Thread>>[src]

pub fn new_runnable<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Runnable>>
) -> Result<Local<'env, Thread>>
[src]

Required features: "java-lang-Runnable"

pub fn new_thread_group_runnable<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ThreadGroup>>,
    arg1: impl Into<Option<&'env Runnable>>
) -> Result<Local<'env, Thread>>
[src]

Required features: "java-lang-Runnable", "java-lang-ThreadGroup"

pub fn new_string<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>
) -> Result<Local<'env, Thread>>
[src]

Required features: "java-lang-String"

pub fn new_thread_group_string<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ThreadGroup>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<Local<'env, Thread>>
[src]

Required features: "java-lang-String", "java-lang-ThreadGroup"

pub fn new_runnable_string<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Runnable>>,
    arg1: impl Into<Option<&'env String>>
) -> Result<Local<'env, Thread>>
[src]

Required features: "java-lang-Runnable", "java-lang-String"

pub fn new_thread_group_runnable_string<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ThreadGroup>>,
    arg1: impl Into<Option<&'env Runnable>>,
    arg2: impl Into<Option<&'env String>>
) -> Result<Local<'env, Thread>>
[src]

Required features: "java-lang-Runnable", "java-lang-String", "java-lang-ThreadGroup"

pub fn new_thread_group_runnable_string_long<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ThreadGroup>>,
    arg1: impl Into<Option<&'env Runnable>>,
    arg2: impl Into<Option<&'env String>>,
    arg3: i64
) -> Result<Local<'env, Thread>>
[src]

Required features: "java-lang-Runnable", "java-lang-String", "java-lang-ThreadGroup"

pub fn current_thread<'env>(
    __jni_env: &'env Env
) -> Result<Option<Local<'env, Thread>>>
[src]

currentThread

Required features: "java-lang-Thread"

pub fn yield<'env>(__jni_env: &'env Env) -> Result<()>[src]

pub fn sleep_long<'env>(__jni_env: &'env Env, arg0: i64) -> Result<()>[src]

pub fn sleep_long_int<'env>(
    __jni_env: &'env Env,
    arg0: i64,
    arg1: i32
) -> Result<()>
[src]

pub fn start<'env>(&'env self) -> Result<()>[src]

pub fn run<'env>(&'env self) -> Result<()>[src]

pub fn stop<'env>(&'env self) -> Result<()>[src]

Deprecated

pub fn stop_throwable<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Throwable>>
) -> Result<()>
[src]

Deprecated

stop

Required features: "java-lang-Throwable"

pub fn interrupt<'env>(&'env self) -> Result<()>[src]

pub fn interrupted<'env>(__jni_env: &'env Env) -> Result<bool>[src]

pub fn is_interrupted<'env>(&'env self) -> Result<bool>[src]

pub fn destroy<'env>(&'env self) -> Result<()>[src]

Deprecated

pub fn is_alive<'env>(&'env self) -> Result<bool>[src]

pub fn suspend<'env>(&'env self) -> Result<()>[src]

Deprecated

pub fn resume<'env>(&'env self) -> Result<()>[src]

Deprecated

pub fn set_priority<'env>(&'env self, arg0: i32) -> Result<()>[src]

pub fn get_priority<'env>(&'env self) -> Result<i32>[src]

pub fn set_name<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>
) -> Result<()>
[src]

setName

Required features: "java-lang-String"

pub fn get_name<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]

getName

Required features: "java-lang-String"

pub fn get_thread_group<'env>(
    &'env self
) -> Result<Option<Local<'env, ThreadGroup>>>
[src]

getThreadGroup

Required features: "java-lang-ThreadGroup"

pub fn active_count<'env>(__jni_env: &'env Env) -> Result<i32>[src]

pub fn count_stack_frames<'env>(&'env self) -> Result<i32>[src]

Deprecated

pub fn join_long<'env>(&'env self, arg0: i64) -> Result<()>[src]

pub fn join_long_int<'env>(&'env self, arg0: i64, arg1: i32) -> Result<()>[src]

pub fn join<'env>(&'env self) -> Result<()>[src]

pub fn dump_stack<'env>(__jni_env: &'env Env) -> Result<()>[src]

pub fn set_daemon<'env>(&'env self, arg0: bool) -> Result<()>[src]

pub fn is_daemon<'env>(&'env self) -> Result<bool>[src]

pub fn check_access<'env>(&'env self) -> Result<()>[src]

pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]

toString

Required features: "java-lang-String"

pub fn get_context_class_loader<'env>(
    &'env self
) -> Result<Option<Local<'env, ClassLoader>>>
[src]

getContextClassLoader

Required features: "java-lang-ClassLoader"

pub fn set_context_class_loader<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ClassLoader>>
) -> Result<()>
[src]

setContextClassLoader

Required features: "java-lang-ClassLoader"

pub fn holds_lock<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]

holdsLock

Required features: "java-lang-Object"

pub fn get_all_stack_traces<'env>(
    __jni_env: &'env Env
) -> Result<Option<Local<'env, Map>>>
[src]

getAllStackTraces

Required features: "java-util-Map"

pub fn get_id<'env>(&'env self) -> Result<i64>[src]

pub fn get_state<'env>(&'env self) -> Result<Option<Local<'env, Thread_State>>>[src]

getState

Required features: "java-lang-Thread_State"

pub fn set_default_uncaught_exception_handler<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Thread_UncaughtExceptionHandler>>
) -> Result<()>
[src]

setDefaultUncaughtExceptionHandler

Required features: "java-lang-Thread_UncaughtExceptionHandler"

pub fn get_default_uncaught_exception_handler<'env>(
    __jni_env: &'env Env
) -> Result<Option<Local<'env, Thread_UncaughtExceptionHandler>>>
[src]

getDefaultUncaughtExceptionHandler

Required features: "java-lang-Thread_UncaughtExceptionHandler"

pub fn get_uncaught_exception_handler<'env>(
    &'env self
) -> Result<Option<Local<'env, Thread_UncaughtExceptionHandler>>>
[src]

getUncaughtExceptionHandler

Required features: "java-lang-Thread_UncaughtExceptionHandler"

pub fn set_uncaught_exception_handler<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Thread_UncaughtExceptionHandler>>
) -> Result<()>
[src]

setUncaughtExceptionHandler

Required features: "java-lang-Thread_UncaughtExceptionHandler"

pub const MAX_PRIORITY: i32[src]

public static final MAX_PRIORITY

pub const MIN_PRIORITY: i32[src]

public static final MIN_PRIORITY

pub const NORM_PRIORITY: i32[src]

public static final NORM_PRIORITY

Methods from Deref<Target = Object>

pub fn get_class<'env>(&'env self) -> Result<Option<Local<'env, Class>>>[src]

getClass

Required features: "java-lang-Class"

pub fn hash_code<'env>(&'env self) -> Result<i32>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]

equals

Required features: "java-lang-Object"

pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]

toString

Required features: "java-lang-String"

pub fn notify<'env>(&'env self) -> Result<()>[src]

pub fn notify_all<'env>(&'env self) -> Result<()>[src]

pub fn wait_long<'env>(&'env self, arg0: i64) -> Result<()>[src]

pub fn wait_long_int<'env>(&'env self, arg0: i64, arg1: i32) -> Result<()>[src]

pub fn wait<'env>(&'env self) -> Result<()>[src]

Trait Implementations

impl AsRef<Runnable> for Thread

impl Deref for Thread

type Target = Object

The resulting type after dereferencing.

impl AsValidJObjectAndEnv for Thread

impl AsJValue for Thread

Auto Trait Implementations

impl !Sync for Thread

impl !Send for Thread

impl Unpin for Thread

impl RefUnwindSafe for Thread

impl UnwindSafe for Thread

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]