[][src]Struct j4rs::Instance

pub struct Instance { /* fields omitted */ }

A Java instance

Implementations

impl Instance[src]

pub fn class_name(&self) -> &str[src]

Returns the class name of this instance

pub fn java_object(self) -> jobject[src]

Consumes the Instance and returns its jobject

pub fn from(obj: jobject) -> Result<Instance>[src]

👎 Deprecated since 0.12.0:

Please use Instance::from_jobject or Instance::from_jobject_with_global_ref instead

pub fn from_jobject(obj: jobject) -> Result<Instance>[src]

pub fn from_jobject_with_global_ref(obj: jobject) -> Result<Instance>[src]

Trait Implementations

impl Drop for Instance[src]

impl From<Instance> for InvocationArg[src]

impl Send for Instance[src]

impl Serialize for Instance[src]

impl TryFrom<InvocationArg> for Instance[src]

type Error = J4RsError

The type returned in the event of a conversion error.

Auto Trait Implementations

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<T> From<T> for T[src]

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

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.