[]Struct jni_android_sys::java::lang::Runtime

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

public class Runtime

Required feature: "java-lang-Runtime"

Methods

impl Runtime

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

getRuntime

Required features: "java-lang-Runtime"

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

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

addShutdownHook

Required features: "java-lang-Thread"

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

removeShutdownHook

Required features: "java-lang-Thread"

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

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

Deprecated

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

exec

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

pub fn exec_String_String_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env ObjectArray<String, Throwable>>>
) -> Result<Option<Local<'env, Process>>, Local<'env, Throwable>>
[src]

exec

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

pub fn exec_String_String_array_File<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg2: impl Into<Option<&'env File>>
) -> Result<Option<Local<'env, Process>>, Local<'env, Throwable>>
[src]

exec

Required features: "java-io-File", "java-lang-Process", "java-lang-String"

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

exec

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

pub fn exec_String_array_String_array<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg1: impl Into<Option<&'env ObjectArray<String, Throwable>>>
) -> Result<Option<Local<'env, Process>>, Local<'env, Throwable>>
[src]

exec

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

pub fn exec_String_array_String_array_File<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg1: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg2: impl Into<Option<&'env File>>
) -> Result<Option<Local<'env, Process>>, Local<'env, Throwable>>
[src]

exec

Required features: "java-io-File", "java-lang-Process", "java-lang-String"

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

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

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

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

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

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

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

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

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

load

Required features: "java-lang-String"

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

loadLibrary

Required features: "java-lang-String"

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

Deprecated

getLocalizedInputStream

Required features: "java-io-InputStream"

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

Deprecated

getLocalizedOutputStream

Required features: "java-io-OutputStream"

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 Runtime

impl AsValidJObjectAndEnv for Runtime

impl Deref for Runtime

type Target = Object

The resulting type after dereferencing.

impl JniType for Runtime

Auto Trait Implementations

impl RefUnwindSafe for Runtime

impl !Send for Runtime

impl !Sync for Runtime

impl Unpin for Runtime

impl UnwindSafe for Runtime

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.