[−]Struct jni_android_sys::java::lang::ref::SoftReference
public class SoftReference
Required feature: "java-lang-ref-SoftReference"
Methods
impl SoftReference
pub fn new_Object<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Object>>
) -> Result<Local<'env, SoftReference>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Object>>
) -> Result<Local<'env, SoftReference>, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn new_Object_ReferenceQueue<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Object>>,
arg1: impl Into<Option<&'env ReferenceQueue>>
) -> Result<Local<'env, SoftReference>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Object>>,
arg1: impl Into<Option<&'env ReferenceQueue>>
) -> Result<Local<'env, SoftReference>, Local<'env, Throwable>>
Required features: "java-lang-Object", "java-lang-ref-ReferenceQueue"
pub fn get<'env>(
&'env self
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
Required features: "java-lang-Object"
Methods from Deref<Target = Reference>
pub fn get<'env>(
&'env self
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn clear<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn isEnqueued<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
pub fn enqueue<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for SoftReference
impl AsValidJObjectAndEnv for SoftReference
impl Deref for SoftReference
impl JniType for SoftReference
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for SoftReference
impl !Send for SoftReference
impl !Sync for SoftReference
impl Unpin for SoftReference
impl UnwindSafe for SoftReference
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>,