Result

public enum Result<Success, Failure> where Failure : Error

A type providing either a success or an error value, from the result of an operation.

Note

This can be removed when migrating to Swift 5.