A Success<T, E> represents a successful computation that returns a value of type T.

T in Failure<T, E> is the type of the value that would have been returned in case of success. It's present only to allow type safety of the isSuccess method.

Type Parameters

  • E

    the failure error type

Properties

Methods

Properties

error: E

Methods