StitchResult

public enum StitchResult<T>

StitchResult holds the result to an asynchronous operation performed against the Stitch server.

When an operation completes successfully, the StitchResult holds the result of the operation. When the operation fails, the StitchResult contains a StitchError object describing the reason for the failure.

  • A successful operation, containing the result of the operation.

    Declaration

    Swift

    case success(result: T)
  • A failed operation, with an error describing the cause of the failure.

    Declaration

    Swift

    case failure(error: StitchError)