DataResult

sealed class DataResult<out T, out E>

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class Failure<E>(val error: E) : DataResult<Nothing, E>
Link copied to clipboard
data class Success<T>(val ok: T) : DataResult<T, Nothing>

Functions

Link copied to clipboard
fun dataOrNull(): T?
Link copied to clipboard
fun errorOrNull(): E?
Link copied to clipboard