pub struct System;Expand description
java.lang.System
Implementations§
Source§impl System
impl System
Sourcepub fn get_env(e: &mut Env<'_>, key: impl ToString) -> Option<String>
pub fn get_env(e: &mut Env<'_>, key: impl ToString) -> Option<String>
String java.lang.System.getenv(String)
Sourcepub fn get_property(e: &mut Env<'_>, key: impl ToString) -> Option<String>
pub fn get_property(e: &mut Env<'_>, key: impl ToString) -> Option<String>
String java.lang.System.getProperty(String)
Sourcepub fn set_property(
e: &mut Env<'_>,
key: impl ToString,
value: impl ToString,
) -> Option<String>
pub fn set_property( e: &mut Env<'_>, key: impl ToString, value: impl ToString, ) -> Option<String>
String java.lang.System.setProperty(String)
Returns Some(val) when there was a previous value.
Sourcepub fn load_library_file(e: &mut Env<'_>, filename: impl ToString)
pub fn load_library_file(e: &mut Env<'_>, filename: impl ToString)
java.lang.System.load(String)
Sourcepub fn load_library(e: &mut Env<'_>, libname: impl ToString)
pub fn load_library(e: &mut Env<'_>, libname: impl ToString)
java.lang.System.loadLibrary(String)
Sourcepub fn out(e: &mut Env<'_>) -> PrintStream
pub fn out(e: &mut Env<'_>) -> PrintStream
java.lang.System.out
Sourcepub fn err(e: &mut Env<'_>) -> PrintStream
pub fn err(e: &mut Env<'_>) -> PrintStream
java.lang.System.err
Trait Implementations§
Source§impl Object for System
impl Object for System
Source§fn downcast_ref(&self, _: &mut Env<'_>) -> Object
fn downcast_ref(&self, _: &mut Env<'_>) -> Object
Create an object reference from
&selfSource§fn upcast_value_ref<'e>(e: &mut Env<'e>, jv: JValue<'e, '_>) -> Selfwhere
Self: Sized,
fn upcast_value_ref<'e>(e: &mut Env<'e>, jv: JValue<'e, '_>) -> Selfwhere
Self: Sized,
Try to interpret a
JValue as SelfSource§fn upcast_value<'e>(e: &mut Env<'e>, jv: JValueOwned<'e>) -> Selfwhere
Self: Sized,
fn upcast_value<'e>(e: &mut Env<'e>, jv: JValueOwned<'e>) -> Selfwhere
Self: Sized,
Try to interpret a
JValueOwned as SelfSource§fn downcast_value<'e>(self, e: &mut Env<'e>) -> JValueOwned<'e>where
Self: Sized,
fn downcast_value<'e>(self, e: &mut Env<'e>) -> JValueOwned<'e>where
Self: Sized,
Create a
JValueOwned from selfSource§fn yield_to_java(&self, e: &mut Env<'_>) -> jobject
fn yield_to_java(&self, e: &mut Env<'_>) -> jobject
Use this to yield ownership of a
java::lang::Object
to the JVM, for example when returning a jobject from a
native function.impl Copy for System
Auto Trait Implementations§
impl Freeze for System
impl RefUnwindSafe for System
impl Send for System
impl Sync for System
impl Unpin for System
impl UnwindSafe for System
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, A, TF, T> Sequence<F, A, TF> for T
impl<F, A, TF, T> Sequence<F, A, TF> for T
Source§fn sequence<Ap>(self) -> <Ap as HKT1>::T<<F as HKT1>::T<A>>where
Self: Sized + Traversable<F, <Ap as HKT1>::T<A>, A, TF> + Foldable<F, <Ap as HKT1>::T<A>>,
Ap: HKT1,
<Ap as HKT1>::T<A>: Applicative<Ap, A> + ApplyOnce<Ap, A>,
<Ap as HKT1>::T<TF>: Applicative<Ap, TF> + ApplyOnce<Ap, TF>,
<Ap as HKT1>::T<<F as HKT1>::T<A>>: Applicative<Ap, <F as HKT1>::T<A>> + ApplyOnce<Ap, <F as HKT1>::T<A>>,
F: HKT1<T<<Ap as HKT1>::T<A>> = Self>,
fn sequence<Ap>(self) -> <Ap as HKT1>::T<<F as HKT1>::T<A>>where
Self: Sized + Traversable<F, <Ap as HKT1>::T<A>, A, TF> + Foldable<F, <Ap as HKT1>::T<A>>,
Ap: HKT1,
<Ap as HKT1>::T<A>: Applicative<Ap, A> + ApplyOnce<Ap, A>,
<Ap as HKT1>::T<TF>: Applicative<Ap, TF> + ApplyOnce<Ap, TF>,
<Ap as HKT1>::T<<F as HKT1>::T<A>>: Applicative<Ap, <F as HKT1>::T<A>> + ApplyOnce<Ap, <F as HKT1>::T<A>>,
F: HKT1<T<<Ap as HKT1>::T<A>> = Self>,
See
Sequence