FutureResultExtension<S, F extends Object> extension

FutureResult represents an asynchronous Result. And as such, inherits all of Results methods.

on

Methods

and<S2>(Result<S2, F> other) FutureResult<S2, F>
andThen<W>(FutureOr<Result<W, F>> fn(S ok)) FutureResult<W, F>
andThenErr<W extends Object>(FutureOr<Result<S, W>> fn(F error)) FutureResult<S, W>
copy() FutureResult<S, F>
expect(String message) Future<S>
expectErr(String message) Future<F>
inspect(FutureOr<void> fn(S ok)) FutureResult<S, F>
inspectErr(FutureOr<void> fn(F error)) FutureResult<S, F>
intoUnchecked<S2>() FutureResult<S2, F>
isErr() Future<bool>
isErrAnd(FutureOr<bool> fn(F)) Future<bool>
isOk() Future<bool>
isOkAnd(FutureOr<bool> fn(S)) Future<bool>
iter() Future<RIterator<S>>
map<W>(FutureOr<W> fn(S ok)) FutureResult<W, F>
mapErr<W extends Object>(FutureOr<W> fn(F error)) FutureResult<S, W>
mapOr<W>(W defaultValue, FutureOr<W> fn(S ok)) Future<W>
mapOrElse<W>(FutureOr<W> defaultFn(F err), FutureOr<W> fn(S ok)) Future<W>
match<W>({required FutureOr<W> ok(S), required FutureOr<W> err(F)}) Future<W>
or<F2 extends Object>(Result<S, F2> other) FutureResult<S, F2>
orElse<F2 extends Object>(FutureOr<Result<S, F2>> fn(F)) FutureResult<S, F2>
unwrap() Future<S>
unwrapErr() Future<F>
unwrapOr(S defaultValue) Future<S>
unwrapOrElse(FutureOr<S> onError(F)) Future<S>
unwrapOrNull() Future<S?>
unwrapOrOption() Future<Option<S>>

Operators

operator [](_ResultEarlyReturnKey<F> op) Future<S>