[]Struct jni_android_sys::android::os::HandlerThread

#[repr(transparent)]
pub struct 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]

HandlerThread

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]

HandlerThread

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]

getLooper

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]

Deprecated

stop

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]

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 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 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 getStackTrace<'env>(
    &'env self
) -> Result<Option<Local<'env, ObjectArray<StackTraceElement, Throwable>>>, Local<'env, Throwable>>
[src]

getStackTrace

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]

getState

Required features: "java-lang-Thread_State"

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]

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

type Target = Thread

The resulting type after dereferencing.

impl JniType for HandlerThread

Auto Trait Implementations

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.