The outcome of an operation: either a success value or an NRError.
Register handlers with onSuccess and onFailure. Both return this result, so they can be chained.
The type of the success value.
Factory methods for creating Result instances.
Runs action with the error if this result is a failure.
Runs action with the success value if this result is a success.