[−]Struct jni_android_sys::java::lang::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]
__jni_env: &'env Env
) -> Result<Option<Local<'env, Runtime>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Thread>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-Thread"
pub fn removeShutdownHook<'env>(
&'env self,
arg0: impl Into<Option<&'env Thread>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Thread>>
) -> Result<bool, Local<'env, Throwable>>
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]
__jni_env: &'env Env,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn exec_String<'env>(
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Process>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env String>>
) -> Result<Option<Local<'env, Process>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env ObjectArray<String, Throwable>>>
) -> Result<Option<Local<'env, Process>>, Local<'env, Throwable>>
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]
&'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>>
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]
&'env self,
arg0: impl Into<Option<&'env ObjectArray<String, Throwable>>>
) -> Result<Option<Local<'env, Process>>, Local<'env, Throwable>>
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]
&'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>>
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]
&'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>>
Required features: "java-io-File", "java-lang-Process", "java-lang-String"
pub fn availableProcessors<'env>(
&'env self
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self
) -> Result<i32, Local<'env, Throwable>>
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]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn traceMethodCalls<'env>(
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: bool
) -> Result<(), Local<'env, Throwable>>
pub fn load<'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 loadLibrary<'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 getLocalizedInputStream<'env>(
&'env self,
arg0: impl Into<Option<&'env InputStream>>
) -> Result<Option<Local<'env, InputStream>>, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env InputStream>>
) -> Result<Option<Local<'env, InputStream>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env OutputStream>>
) -> Result<Option<Local<'env, OutputStream>>, Local<'env, Throwable>>
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]
&'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 Runtime
impl AsValidJObjectAndEnv for Runtime
impl Deref for Runtime
impl JniType for Runtime
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
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]
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>,