[]Struct jni_android_sys::java::util::concurrent::CompletableFuture

#[repr(transparent)]
pub struct CompletableFuture(_);

public class CompletableFuture

Required feature: "java-util-concurrent-CompletableFuture"

Methods

impl CompletableFuture

pub fn new<'env>(
    __jni_env: &'env Env
) -> Result<Local<'env, CompletableFuture>, Local<'env, Throwable>>
[src]

pub fn supplyAsync_Supplier<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Supplier>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

supplyAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-Supplier"

pub fn supplyAsync_Supplier_Executor<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Supplier>>,
    arg1: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

supplyAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-Executor", "java-util-function-Supplier"

pub fn runAsync_Runnable<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Runnable>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

runAsync

Required features: "java-lang-Runnable", "java-util-concurrent-CompletableFuture"

pub fn runAsync_Runnable_Executor<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Runnable>>,
    arg1: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

runAsync

Required features: "java-lang-Runnable", "java-util-concurrent-CompletableFuture", "java-util-concurrent-Executor"

pub fn completedFuture<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

completedFuture

Required features: "java-lang-Object", "java-util-concurrent-CompletableFuture"

pub fn isDone<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn get<'env>(
    &'env self
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]

get

Required features: "java-lang-Object"

pub fn get_long_TimeUnit<'env>(
    &'env self,
    arg0: i64,
    arg1: impl Into<Option<&'env TimeUnit>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]

get

Required features: "java-lang-Object", "java-util-concurrent-TimeUnit"

pub fn join<'env>(
    &'env self
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]

join

Required features: "java-lang-Object"

pub fn getNow<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
[src]

getNow

Required features: "java-lang-Object"

pub fn complete<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]

complete

Required features: "java-lang-Object"

pub fn completeExceptionally<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Throwable>>
) -> Result<bool, Local<'env, Throwable>>
[src]

completeExceptionally

Required features: "java-lang-Throwable"

pub fn thenApply_Function<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Function>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

thenApply

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-Function"

pub fn thenApplyAsync_Function<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Function>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

thenApplyAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-Function"

pub fn thenApplyAsync_Function_Executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Function>>,
    arg1: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

thenApplyAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-Executor", "java-util-function-Function"

pub fn thenAccept_Consumer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Consumer>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

thenAccept

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-Consumer"

pub fn thenAcceptAsync_Consumer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Consumer>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

thenAcceptAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-Consumer"

pub fn thenAcceptAsync_Consumer_Executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Consumer>>,
    arg1: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

thenAcceptAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-Executor", "java-util-function-Consumer"

pub fn thenRun_Runnable<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Runnable>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

thenRun

Required features: "java-lang-Runnable", "java-util-concurrent-CompletableFuture"

pub fn thenRunAsync_Runnable<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Runnable>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

thenRunAsync

Required features: "java-lang-Runnable", "java-util-concurrent-CompletableFuture"

pub fn thenRunAsync_Runnable_Executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Runnable>>,
    arg1: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

thenRunAsync

Required features: "java-lang-Runnable", "java-util-concurrent-CompletableFuture", "java-util-concurrent-Executor"

pub fn thenCombine_CompletionStage_BiFunction<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env BiFunction>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

thenCombine

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-function-BiFunction"

pub fn thenCombineAsync_CompletionStage_BiFunction<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env BiFunction>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

thenCombineAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-function-BiFunction"

pub fn thenCombineAsync_CompletionStage_BiFunction_Executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env BiFunction>>,
    arg2: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

thenCombineAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-concurrent-Executor", "java-util-function-BiFunction"

pub fn thenAcceptBoth_CompletionStage_BiConsumer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env BiConsumer>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

thenAcceptBoth

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-function-BiConsumer"

pub fn thenAcceptBothAsync_CompletionStage_BiConsumer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env BiConsumer>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

thenAcceptBothAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-function-BiConsumer"

pub fn thenAcceptBothAsync_CompletionStage_BiConsumer_Executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env BiConsumer>>,
    arg2: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

thenAcceptBothAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-concurrent-Executor", "java-util-function-BiConsumer"

pub fn runAfterBoth_CompletionStage_Runnable<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Runnable>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

runAfterBoth

Required features: "java-lang-Runnable", "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage"

pub fn runAfterBothAsync_CompletionStage_Runnable<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Runnable>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

runAfterBothAsync

Required features: "java-lang-Runnable", "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage"

pub fn runAfterBothAsync_CompletionStage_Runnable_Executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Runnable>>,
    arg2: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

runAfterBothAsync

Required features: "java-lang-Runnable", "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-concurrent-Executor"

pub fn applyToEither_CompletionStage_Function<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Function>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

applyToEither

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-function-Function"

pub fn applyToEitherAsync_CompletionStage_Function<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Function>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

applyToEitherAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-function-Function"

pub fn applyToEitherAsync_CompletionStage_Function_Executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Function>>,
    arg2: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

applyToEitherAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-concurrent-Executor", "java-util-function-Function"

pub fn acceptEither_CompletionStage_Consumer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Consumer>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

acceptEither

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-function-Consumer"

pub fn acceptEitherAsync_CompletionStage_Consumer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Consumer>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

acceptEitherAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-function-Consumer"

pub fn acceptEitherAsync_CompletionStage_Consumer_Executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Consumer>>,
    arg2: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

acceptEitherAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-concurrent-Executor", "java-util-function-Consumer"

pub fn runAfterEither_CompletionStage_Runnable<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Runnable>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

runAfterEither

Required features: "java-lang-Runnable", "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage"

pub fn runAfterEitherAsync_CompletionStage_Runnable<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Runnable>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

runAfterEitherAsync

Required features: "java-lang-Runnable", "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage"

pub fn runAfterEitherAsync_CompletionStage_Runnable_Executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionStage>>,
    arg1: impl Into<Option<&'env Runnable>>,
    arg2: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

runAfterEitherAsync

Required features: "java-lang-Runnable", "java-util-concurrent-CompletableFuture", "java-util-concurrent-CompletionStage", "java-util-concurrent-Executor"

pub fn thenCompose_Function<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Function>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

thenCompose

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-Function"

pub fn thenComposeAsync_Function<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Function>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

thenComposeAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-Function"

pub fn thenComposeAsync_Function_Executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Function>>,
    arg1: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

thenComposeAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-Executor", "java-util-function-Function"

pub fn whenComplete_BiConsumer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BiConsumer>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

whenComplete

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-BiConsumer"

pub fn whenCompleteAsync_BiConsumer<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BiConsumer>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

whenCompleteAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-BiConsumer"

pub fn whenCompleteAsync_BiConsumer_Executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BiConsumer>>,
    arg1: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

whenCompleteAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-Executor", "java-util-function-BiConsumer"

pub fn handle_BiFunction<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BiFunction>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

handle

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-BiFunction"

pub fn handleAsync_BiFunction<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BiFunction>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

handleAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-BiFunction"

pub fn handleAsync_BiFunction_Executor<'env>(
    &'env self,
    arg0: impl Into<Option<&'env BiFunction>>,
    arg1: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

handleAsync

Required features: "java-util-concurrent-CompletableFuture", "java-util-concurrent-Executor", "java-util-function-BiFunction"

pub fn toCompletableFuture<'env>(
    &'env self
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

toCompletableFuture

Required features: "java-util-concurrent-CompletableFuture"

pub fn exceptionally_Function<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Function>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

exceptionally

Required features: "java-util-concurrent-CompletableFuture", "java-util-function-Function"

pub fn allOf<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ObjectArray<CompletableFuture, Throwable>>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

allOf

Required features: "java-util-concurrent-CompletableFuture"

pub fn anyOf<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env ObjectArray<CompletableFuture, Throwable>>>
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
[src]

anyOf

Required features: "java-util-concurrent-CompletableFuture"

pub fn cancel<'env>(
    &'env self,
    arg0: bool
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn isCancelled<'env>(&'env self) -> Result<bool, Local<'env, Throwable>>[src]

pub fn isCompletedExceptionally<'env>(
    &'env self
) -> Result<bool, Local<'env, Throwable>>
[src]

pub fn obtrudeValue<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<(), Local<'env, Throwable>>
[src]

obtrudeValue

Required features: "java-lang-Object"

pub fn obtrudeException<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Throwable>>
) -> Result<(), Local<'env, Throwable>>
[src]

obtrudeException

Required features: "java-lang-Throwable"

pub fn getNumberOfDependents<'env>(
    &'env self
) -> Result<i32, Local<'env, Throwable>>
[src]

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

Methods from Deref<Target = Object>

pub fn getClass<'env>(
    &'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]

getClass

Required features: "java-lang-Class"

pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]

equals

Required features: "java-lang-Object"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

Required features: "java-lang-String"

pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

pub fn wait_long<'env>(
    &'env self,
    arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>[src]

Trait Implementations

impl AsJValue for CompletableFuture

impl AsRef<CompletionStage> for CompletableFuture

impl AsRef<Future> for CompletableFuture

impl AsValidJObjectAndEnv for CompletableFuture

impl Deref for CompletableFuture

type Target = Object

The resulting type after dereferencing.

impl JniType for CompletableFuture

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.