Struct jni::objects::JThrowable
source · #[repr(transparent)]pub struct JThrowable<'local>(_);
Expand description
Lifetime’d representation of a jthrowable
. Just a JObject
wrapped in a
new class.
Implementations§
source§impl<'local> JThrowable<'local>
impl<'local> JThrowable<'local>
sourcepub unsafe fn from_raw(raw: jthrowable) -> Self
pub unsafe fn from_raw(raw: jthrowable) -> Self
Creates a JThrowable
that wraps the given raw
jthrowable
Safety
raw
may be a null pointer. If raw
is not a null pointer, then:
raw
must be a valid raw JNI local reference.- There must not be any other
JObject
representing the same local reference. - The lifetime
'local
must not outlive the local reference frame that the local reference was created in.
sourcepub fn into_raw(self) -> jthrowable
pub fn into_raw(self) -> jthrowable
Unwrap to the raw jni type.
Methods from Deref<Target = JObject<'local>>§
Trait Implementations§
source§impl<'local> AsRef<JObject<'local>> for JThrowable<'local>
impl<'local> AsRef<JObject<'local>> for JThrowable<'local>
source§impl<'local> AsRef<JThrowable<'local>> for JThrowable<'local>
impl<'local> AsRef<JThrowable<'local>> for JThrowable<'local>
source§fn as_ref(&self) -> &JThrowable<'local>
fn as_ref(&self) -> &JThrowable<'local>
Converts this type into a shared reference of the (usually inferred) input type.
source§impl<'local> Default for JThrowable<'local>
impl<'local> Default for JThrowable<'local>
source§impl<'local> Deref for JThrowable<'local>
impl<'local> Deref for JThrowable<'local>
source§impl<'local, 'str_ref> Desc<'local, JThrowable<'local>> for &'str_ref str
impl<'local, 'str_ref> Desc<'local, JThrowable<'local>> for &'str_ref str
source§impl<'local, 'other_local, C, M> Desc<'local, JThrowable<'local>> for (C, M)where
C: Desc<'local, JClass<'other_local>>,
M: Into<JNIString>,
impl<'local, 'other_local, C, M> Desc<'local, JThrowable<'local>> for (C, M)where C: Desc<'local, JClass<'other_local>>, M: Into<JNIString>,
source§impl<'local> Desc<'local, JThrowable<'local>> for Exception
impl<'local> Desc<'local, JThrowable<'local>> for Exception
source§impl<'local> Desc<'local, JThrowable<'local>> for JNIString
impl<'local> Desc<'local, JThrowable<'local>> for JNIString
source§impl<'local> Desc<'local, JThrowable<'local>> for String
impl<'local> Desc<'local, JThrowable<'local>> for String
source§impl<'local, 'obj_ref> From<&'obj_ref JObject<'local>> for &'obj_ref JThrowable<'local>
impl<'local, 'obj_ref> From<&'obj_ref JObject<'local>> for &'obj_ref JThrowable<'local>
source§impl<'local> From<JObject<'local>> for JThrowable<'local>
impl<'local> From<JObject<'local>> for JThrowable<'local>
source§impl<'local> From<JThrowable<'local>> for JObject<'local>
impl<'local> From<JThrowable<'local>> for JObject<'local>
source§fn from(other: JThrowable<'_>) -> JObject<'_>
fn from(other: JThrowable<'_>) -> JObject<'_>
Converts to this type from the input type.