failure

fun <T> failure(error: NRError): Result<T>

Creates a failed result that holds error.