toOutcome

Converts this Result to an Outcome.

Return

An Outcome containing the value if successful, or a Failure if failed.