51 uint32_t nativeError = 0;
58 uint32_t nativeError = 0, uint32_t depth = 0)
59 : result(Result::Error(FileSystemIteratorResultCategory, error)), nativeError(nativeError),
60 depth(
static_cast<uint16_t
>(depth)), detail(detail)
64 template <
typename ResultLike>
68 explicit constexpr operator bool()
const {
return static_cast<bool>(result); }
70 constexpr operator Result()
const {
return result; }
72 constexpr Result toResult()
const {
return result; }
75 return result.isError(FileSystemIteratorResultCategory, error);
FileSystemIteratorErrorDetail
Stable detail identifying the backend stage of a FileSystemIterator failure.
Definition FileSystemIteratorError.h:26
FileSystemIterator result retaining optional native, backend-stage, and directory-depth details.
Definition FileSystemIteratorError.h:48