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