ReadResult

public enum ReadResult<R>

Indicates a successful, cancelled, or failed read attempt, where the success case contains the value read.

  • The read is successful and the value read is captured in the associated value.

    Declaration

    Swift

    case success(R)
  • The read has failed unexpectedly with an error.

    Declaration

    Swift

    case failure(Error)