MBXExpected.h 502 B

123456789101112131415
  1. #import <Foundation/Foundation.h>
  2. NS_SWIFT_NAME(Expected)
  3. __attribute__((visibility ("default")))
  4. @interface MBXExpected<__covariant ValueType, __covariant ErrorType>: NSObject
  5. - (instancetype _Nonnull)initWithValue:(_Nonnull ValueType)value;
  6. - (instancetype _Nonnull)initWithError:(_Nonnull ErrorType)error;
  7. - (BOOL)isValue;
  8. - (BOOL)isError;
  9. @property (nonatomic, strong, readonly, null_unspecified) ValueType value;
  10. @property (nonatomic, strong, readonly, null_unspecified) ErrorType error;
  11. @end