[−]Struct jni_android_sys::java::util::concurrent::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]
&'env self,
arg0: impl Into<Option<&'env Function>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Function>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Function>>,
arg1: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Consumer>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Consumer>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Consumer>>,
arg1: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Runnable>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Runnable>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Runnable>>,
arg1: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env CompletionStage>>,
arg1: impl Into<Option<&'env BiFunction>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env CompletionStage>>,
arg1: impl Into<Option<&'env BiFunction>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'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>>
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]
&'env self,
arg0: impl Into<Option<&'env CompletionStage>>,
arg1: impl Into<Option<&'env BiConsumer>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env CompletionStage>>,
arg1: impl Into<Option<&'env BiConsumer>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'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>>
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]
&'env self,
arg0: impl Into<Option<&'env CompletionStage>>,
arg1: impl Into<Option<&'env Runnable>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env CompletionStage>>,
arg1: impl Into<Option<&'env Runnable>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'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>>
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]
&'env self,
arg0: impl Into<Option<&'env CompletionStage>>,
arg1: impl Into<Option<&'env Function>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env CompletionStage>>,
arg1: impl Into<Option<&'env Function>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'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>>
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]
&'env self,
arg0: impl Into<Option<&'env CompletionStage>>,
arg1: impl Into<Option<&'env Consumer>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env CompletionStage>>,
arg1: impl Into<Option<&'env Consumer>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'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>>
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]
&'env self,
arg0: impl Into<Option<&'env CompletionStage>>,
arg1: impl Into<Option<&'env Runnable>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env CompletionStage>>,
arg1: impl Into<Option<&'env Runnable>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'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>>
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]
&'env self,
arg0: impl Into<Option<&'env Function>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Function>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Function>>,
arg1: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env BiFunction>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env BiFunction>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env BiFunction>>,
arg1: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env BiConsumer>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env BiConsumer>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env BiConsumer>>,
arg1: impl Into<Option<&'env Executor>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Function>>
) -> Result<Option<Local<'env, CompletionStage>>, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, CompletableFuture>>, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for CompletionStage
impl AsRef<CompletionStage> for CompletableFuture
fn as_ref(&self) -> &CompletionStage
impl AsValidJObjectAndEnv for CompletionStage
impl Deref for CompletionStage
impl JniType for CompletionStage
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for CompletionStage
impl !Send for CompletionStage
impl !Sync for CompletionStage
impl Unpin for CompletionStage
impl UnwindSafe for CompletionStage
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,