Type Alias JavaResult

Source
pub type JavaResult<'env, T> = Result<T, Throwable<'env>>;
Expand description

A type that represents a result of a Java method call. A Java method can either return a result or throw a Throwable.

Aliased Type§

enum JavaResult<'env, T> {
    Ok(T),
    Err(Throwable<'env>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Throwable<'env>)

Contains the error value