A sealed class representing a result, which can be either Success or Failure.
The type of the success value.
The type of the failure value.
Represents a failure result.
Represents a success result.