Cryptography result retaining a stable operation detail and one scalar diagnostic context. More...
#include <CryptographyError.h>
Public Member Functions | |
| constexpr | ResultCryptography (bool valid) |
| constexpr | ResultCryptography (CryptographyError error, CryptographyErrorDetail detail=CryptographyErrorDetail::None) |
| constexpr | ResultCryptography (CryptographyError error, CryptographyErrorDetail detail, CryptographyErrorContextKind contextKind, CryptographyErrorContext context) |
| constexpr | ResultCryptography (Result result) |
| template<typename ResultLike > | |
| constexpr | ResultCryptography (const ResultLike &other) |
| constexpr | operator bool () const |
| constexpr | operator Result () const |
| constexpr Result | toResult () const |
| constexpr bool | isError (CryptographyError error) const |
Static Public Member Functions | |
| static constexpr ResultCryptography | withAppleCommonCryptoStatus (CryptographyError error, CryptographyErrorDetail detail, int32_t status) |
| static constexpr ResultCryptography | withWindowsNtStatus (CryptographyError error, CryptographyErrorDetail detail, uint32_t status) |
| static constexpr ResultCryptography | withPosixErrno (CryptographyError error, CryptographyErrorDetail detail, int32_t errorNumber) |
| static constexpr ResultCryptography | withExpectedBytes (CryptographyError error, CryptographyErrorDetail detail, uint32_t expectedBytes) |
| static constexpr ResultCryptography | withRequiredBytes (CryptographyError error, CryptographyErrorDetail detail, uint32_t requiredBytes) |
| static constexpr ResultCryptography | withMaximumBytes (CryptographyError error, CryptographyErrorDetail detail, uint32_t maximumBytes) |
| static constexpr ResultCryptography | withActualBytes (CryptographyError error, CryptographyErrorDetail detail, uint32_t actualBytes) |
Public Attributes | |
| Result | result |
| CryptographyErrorDetail | detail = CryptographyErrorDetail::None |
| CryptographyErrorContextKind | contextKind = CryptographyErrorContextKind::None |
| CryptographyErrorContext | context = {} |
Cryptography result retaining a stable operation detail and one scalar diagnostic context.
The composed Result is authoritative. Plain and foreign conversions clear Cryptography-specific context, while same-domain copies retain it. Conversion to Result preserves only the category/error identity.