Result

public enum Result<T, E> where E : Error

A result object is generally used for asynchronous callbacks in the SDK

  • Denotes a successful journey of bits and instructions through the virtual world. Contains the value that was meant to be received in a success case.

    Declaration

    Swift

    case success(T)
  • Something went wrong. Contains the Error object with more information.

    Declaration

    Swift

    case failure(E)
  • Declaration

    Swift

    public var description: String { get }
  • Declaration

    Swift

    public var debugDescription: String { get }