StandaloneResult

sealed class StandaloneResult<out T, out E>

Result wrapper returned by the standalone 3DS APIs, representing either a successful outcome of type T or a failure of type E.

Parameters

T

The type of the value held by a Success result.

E

The type of the error held by a Failure result.

Inheritors

Types

Link copied to clipboard
data class Failure<out E>(val error: E) : StandaloneResult<Nothing, E>

A failed StandaloneResult holding the error that describes what went wrong.

Link copied to clipboard
data class Success<out T>(val value: T) : StandaloneResult<T, Nothing>

A successful StandaloneResult holding the produced value.