[][src]Struct uni_jnihelpers::UniGlobalRef

pub struct UniGlobalRef<T> { /* fields omitted */ }

Implementations

impl<T> UniGlobalRef<T> where
    T: Into<JObject<'static>>,
    T: From<jobject>, 
[src]

pub fn try_new<'b>(env: &JNIEnv<'b>, obj: T) -> Result<Self, JniError>[src]

pub unsafe fn try_upgrade<'b>(
    wgr: &WeakGlobalRef,
    env: &JNIEnv<'b>
) -> Option<Self>
[src]

The method is unsafe because caller have to check if provided wgr pointing to the correct kind of object.

pub fn as_obj(&self) -> T[src]

Trait Implementations

impl<T: Clone> Clone for UniGlobalRef<T>[src]

impl<T> Send for UniGlobalRef<T>[src]

impl<T> Sync for UniGlobalRef<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for UniGlobalRef<T> where
    T: RefUnwindSafe
[src]

impl<T> Unpin for UniGlobalRef<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for UniGlobalRef<T> where
    T: UnwindSafe
[src]

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<'a, T> Desc<'a, T> for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.