[−]Struct jni_android_sys::java::lang::Thread
public class Thread
Required feature: "java-lang-Thread"
Methods
impl Thread
pub fn new<'env>(
__jni_env: &'env Env
) -> Result<Local<'env, Thread>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Local<'env, Thread>, Local<'env, Throwable>>
pub fn new_Runnable<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Runnable>>
) -> Result<Local<'env, Thread>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Runnable>>
) -> Result<Local<'env, Thread>, Local<'env, Throwable>>
Required features: "java-lang-Runnable"
pub fn new_ThreadGroup_Runnable<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ThreadGroup>>,
arg1: impl Into<Option<&'env Runnable>>
) -> Result<Local<'env, Thread>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ThreadGroup>>,
arg1: impl Into<Option<&'env Runnable>>
) -> Result<Local<'env, Thread>, Local<'env, Throwable>>
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>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Local<'env, Thread>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn new_ThreadGroup_String<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ThreadGroup>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Local<'env, Thread>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ThreadGroup>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Local<'env, Thread>, Local<'env, Throwable>>
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>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Runnable>>,
arg1: impl Into<Option<&'env String>>
) -> Result<Local<'env, Thread>, Local<'env, Throwable>>
Required features: "java-lang-Runnable", "java-lang-String"
pub fn new_ThreadGroup_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>, Local<'env, Throwable>>
[src]
__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>, Local<'env, Throwable>>
Required features: "java-lang-Runnable", "java-lang-String", "java-lang-ThreadGroup"
pub fn new_ThreadGroup_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>, Local<'env, Throwable>>
[src]
__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>, Local<'env, Throwable>>
Required features: "java-lang-Runnable", "java-lang-String", "java-lang-ThreadGroup"
pub fn currentThread<'env>(
__jni_env: &'env Env
) -> Result<Option<Local<'env, Thread>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Option<Local<'env, Thread>>, Local<'env, Throwable>>
Required features: "java-lang-Thread"
pub fn yield<'env>(__jni_env: &'env Env) -> Result<(), Local<'env, Throwable>>
[src]
pub fn sleep_long<'env>(
__jni_env: &'env Env,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn sleep_long_int<'env>(
__jni_env: &'env Env,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn start<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn run<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn stop<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn stop_Throwable<'env>(
&'env self,
arg0: impl Into<Option<&'env Throwable>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Throwable>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-Throwable"
pub fn interrupt<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn interrupted<'env>(
__jni_env: &'env Env
) -> Result<bool, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<bool, Local<'env, Throwable>>
pub fn isInterrupted<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn destroy<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn isAlive<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn suspend<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn resume<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn setPriority<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn getPriority<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn setName<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getName<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getThreadGroup<'env>(
&'env self
) -> Result<Option<Local<'env, ThreadGroup>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ThreadGroup>>, Local<'env, Throwable>>
Required features: "java-lang-ThreadGroup"
pub fn activeCount<'env>(
__jni_env: &'env Env
) -> Result<i32, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<i32, Local<'env, Throwable>>
pub fn enumerate<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ObjectArray<Thread, Throwable>>>
) -> Result<i32, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env ObjectArray<Thread, Throwable>>>
) -> Result<i32, Local<'env, Throwable>>
Required features: "java-lang-Thread"
pub fn countStackFrames<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn join_long<'env>(
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn join_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn join<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn dumpStack<'env>(
__jni_env: &'env Env
) -> Result<(), Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<(), Local<'env, Throwable>>
pub fn setDaemon<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn isDaemon<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn checkAccess<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn getContextClassLoader<'env>(
&'env self
) -> Result<Option<Local<'env, ClassLoader>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ClassLoader>>, Local<'env, Throwable>>
Required features: "java-lang-ClassLoader"
pub fn setContextClassLoader<'env>(
&'env self,
arg0: impl Into<Option<&'env ClassLoader>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ClassLoader>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-ClassLoader"
pub fn holdsLock<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn getStackTrace<'env>(
&'env self
) -> Result<Option<Local<'env, ObjectArray<StackTraceElement, Throwable>>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, ObjectArray<StackTraceElement, Throwable>>>, Local<'env, Throwable>>
Required features: "java-lang-StackTraceElement"
pub fn getAllStackTraces<'env>(
__jni_env: &'env Env
) -> Result<Option<Local<'env, Map>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Option<Local<'env, Map>>, Local<'env, Throwable>>
Required features: "java-util-Map"
pub fn getId<'env>(&'env self) -> Result<i64, Local<'env, Throwable>>
[src]
pub fn getState<'env>(
&'env self
) -> Result<Option<Local<'env, Thread_State>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Thread_State>>, Local<'env, Throwable>>
Required features: "java-lang-Thread_State"
pub fn setDefaultUncaughtExceptionHandler<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Thread_UncaughtExceptionHandler>>
) -> Result<(), Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Thread_UncaughtExceptionHandler>>
) -> Result<(), Local<'env, Throwable>>
setDefaultUncaughtExceptionHandler
Required features: "java-lang-Thread_UncaughtExceptionHandler"
pub fn getDefaultUncaughtExceptionHandler<'env>(
__jni_env: &'env Env
) -> Result<Option<Local<'env, Thread_UncaughtExceptionHandler>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env
) -> Result<Option<Local<'env, Thread_UncaughtExceptionHandler>>, Local<'env, Throwable>>
getDefaultUncaughtExceptionHandler
Required features: "java-lang-Thread_UncaughtExceptionHandler"
pub fn getUncaughtExceptionHandler<'env>(
&'env self
) -> Result<Option<Local<'env, Thread_UncaughtExceptionHandler>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Thread_UncaughtExceptionHandler>>, Local<'env, Throwable>>
Required features: "java-lang-Thread_UncaughtExceptionHandler"
pub fn setUncaughtExceptionHandler<'env>(
&'env self,
arg0: impl Into<Option<&'env Thread_UncaughtExceptionHandler>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Thread_UncaughtExceptionHandler>>
) -> Result<(), Local<'env, Throwable>>
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 getClass<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
Required features: "java-lang-Class"
pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn wait_long<'env>(
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for Thread
impl AsRef<Runnable> for Thread
impl AsValidJObjectAndEnv for Thread
impl Deref for Thread
impl JniType for Thread
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for Thread
impl !Send for Thread
impl !Sync for Thread
impl Unpin for Thread
impl UnwindSafe for Thread
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,