[−]Struct jni_android_sys::android::os::HandlerThread
public class HandlerThread
Required feature: "android-os-HandlerThread"
Methods
impl HandlerThread
pub fn new_String<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Local<'env, HandlerThread>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>
) -> Result<Local<'env, HandlerThread>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn new_String_int<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<Local<'env, HandlerThread>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env String>>,
arg1: i32
) -> Result<Local<'env, HandlerThread>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn run<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn getLooper<'env>(
&'env self
) -> Result<Option<Local<'env, Looper>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Looper>>, Local<'env, Throwable>>
Required features: "android-os-Looper"
pub fn quit<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn quitSafely<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn getThreadId<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
Methods from Deref<Target = Thread>
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]
&'env self,
arg0: impl Into<Option<&'env Throwable>>
) -> Result<(), Local<'env, Throwable>>
Deprecated
Required features: "java-lang-Throwable"
pub fn interrupt<'env>(&'env self) -> Result<(), 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]
&'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 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]
&'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 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 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 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 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]
pub const MIN_PRIORITY: i32
[src]
pub const NORM_PRIORITY: i32
[src]
Trait Implementations
impl AsJValue for HandlerThread
impl AsValidJObjectAndEnv for HandlerThread
impl Deref for HandlerThread
impl JniType for HandlerThread
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for HandlerThread
impl !Send for HandlerThread
impl !Sync for HandlerThread
impl Unpin for HandlerThread
impl UnwindSafe for HandlerThread
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>,