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

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

public interface CompletionStage

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

Methods

impl CompletionStage

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

thenApply

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

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

thenApplyAsync

Required features: "java-util-concurrent-CompletionStage", "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, CompletionStage>>, Local<'env, Throwable>>
[src]

thenApplyAsync

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

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

thenAccept

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

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

thenAcceptAsync

Required features: "java-util-concurrent-CompletionStage", "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, CompletionStage>>, Local<'env, Throwable>>
[src]

thenAcceptAsync

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

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

thenRun

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

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

thenRunAsync

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

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

thenRunAsync

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

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

thenCombine

Required features: "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, CompletionStage>>, Local<'env, Throwable>>
[src]

thenCombineAsync

Required features: "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, CompletionStage>>, Local<'env, Throwable>>
[src]

thenCombineAsync

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

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

thenAcceptBoth

Required features: "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, CompletionStage>>, Local<'env, Throwable>>
[src]

thenAcceptBothAsync

Required features: "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, CompletionStage>>, Local<'env, Throwable>>
[src]

thenAcceptBothAsync

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

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

runAfterBoth

Required features: "java-lang-Runnable", "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, CompletionStage>>, Local<'env, Throwable>>
[src]

runAfterBothAsync

Required features: "java-lang-Runnable", "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, CompletionStage>>, Local<'env, Throwable>>
[src]

runAfterBothAsync

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

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

applyToEither

Required features: "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, CompletionStage>>, Local<'env, Throwable>>
[src]

applyToEitherAsync

Required features: "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, CompletionStage>>, Local<'env, Throwable>>
[src]

applyToEitherAsync

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

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

acceptEither

Required features: "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, CompletionStage>>, Local<'env, Throwable>>
[src]

acceptEitherAsync

Required features: "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, CompletionStage>>, Local<'env, Throwable>>
[src]

acceptEitherAsync

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

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

runAfterEither

Required features: "java-lang-Runnable", "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, CompletionStage>>, Local<'env, Throwable>>
[src]

runAfterEitherAsync

Required features: "java-lang-Runnable", "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, CompletionStage>>, Local<'env, Throwable>>
[src]

runAfterEitherAsync

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

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

thenCompose

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

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

thenComposeAsync

Required features: "java-util-concurrent-CompletionStage", "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, CompletionStage>>, Local<'env, Throwable>>
[src]

thenComposeAsync

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

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

handle

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

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

handleAsync

Required features: "java-util-concurrent-CompletionStage", "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, CompletionStage>>, Local<'env, Throwable>>
[src]

handleAsync

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

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

whenComplete

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

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

whenCompleteAsync

Required features: "java-util-concurrent-CompletionStage", "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, CompletionStage>>, Local<'env, Throwable>>
[src]

whenCompleteAsync

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

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

exceptionally

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

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

toCompletableFuture

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

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 CompletionStage

impl AsRef<CompletionStage> for CompletableFuture

impl AsValidJObjectAndEnv for CompletionStage

impl Deref for CompletionStage

type Target = Object

The resulting type after dereferencing.

impl JniType for CompletionStage

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.