Companion object for Resultat class that contains its constructor functions success, loading and failure.
Returns an instance that encapsulates the given Throwable as failure.
Returns an instance that represents the loading state.
Returns an instance that encapsulates the given value as successful value.