[]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>, Local<'env, Throwable>>
[src]

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

Thread

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]

Thread

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]

Thread

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]

Thread

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]

Thread

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]

Thread

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]

Thread

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]

currentThread

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]

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

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]

Deprecated

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

Deprecated

stop

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]

pub fn isInterrupted<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

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

Deprecated

pub fn isAlive<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

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

Deprecated

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

Deprecated

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

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]

setName

Required features: "java-lang-String"

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

getName

Required features: "java-lang-String"

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

getThreadGroup

Required features: "java-lang-ThreadGroup"

pub fn activeCount<'env>(
    __jni_env: &'env Env
) -> Result<i32, Local<'env, Throwable>>
[src]

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

enumerate

Required features: "java-lang-Thread"

pub fn countStackFrames<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

Deprecated

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

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

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

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

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

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]

toString

Required features: "java-lang-String"

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

getContextClassLoader

Required features: "java-lang-ClassLoader"

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

setContextClassLoader

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]

holdsLock

Required features: "java-lang-Object"

pub fn getStackTrace<'env>(
    &'env self
) -> Result<Option<Local<'env, ObjectArray<StackTraceElement, Throwable>>>, Local<'env, Throwable>>
[src]

getStackTrace

Required features: "java-lang-StackTraceElement"

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

getAllStackTraces

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]

getState

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]

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]

getDefaultUncaughtExceptionHandler

Required features: "java-lang-Thread_UncaughtExceptionHandler"

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

getUncaughtExceptionHandler

Required features: "java-lang-Thread_UncaughtExceptionHandler"

pub fn setUncaughtExceptionHandler<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Thread_UncaughtExceptionHandler>>
) -> Result<(), Local<'env, Throwable>>
[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 getClass<'env>(
    &'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]

getClass

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]

equals

Required features: "java-lang-Object"

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

toString

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]

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

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

type Target = Object

The resulting type after dereferencing.

impl JniType for Thread

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]

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

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

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.