Sane C++ Libraries
C++ Platform Abstraction Libraries
Loading...
Searching...
No Matches
SC::ResultFileSystem Struct Reference

FileSystem result retaining an operation detail and one scalar diagnostic context. More...

#include <FileSystemError.h>

Public Member Functions

constexpr ResultFileSystem (bool valid)
 
constexpr ResultFileSystem (FileSystemError error, FileSystemErrorDetail detail=FileSystemErrorDetail::None)
 
constexpr ResultFileSystem (FileSystemError error, FileSystemErrorDetail detail, FileSystemErrorContextKind contextKind, FileSystemErrorContext context)
 
constexpr ResultFileSystem (Result result)
 
template<typename ResultLike >
constexpr ResultFileSystem (const ResultLike &other)
 
constexpr operator bool () const
 
constexpr operator Result () const
 
constexpr Result toResult () const
 
constexpr bool isError (FileSystemError error) const
 

Static Public Member Functions

static constexpr ResultFileSystem withNativeError (FileSystemError error, FileSystemErrorDetail detail, uint32_t nativeError)
 
static constexpr ResultFileSystem withRequiredBytes (FileSystemError error, FileSystemErrorDetail detail, uint32_t requiredBytes)
 
static constexpr ResultFileSystem withActualBytes (FileSystemError error, FileSystemErrorDetail detail, uint32_t actualBytes)
 

Public Attributes

Result result
 
FileSystemErrorDetail detail = FileSystemErrorDetail::None
 
FileSystemErrorContextKind contextKind = FileSystemErrorContextKind::None
 
FileSystemErrorContext context = {}
 

Detailed Description

FileSystem result retaining an operation detail and one scalar diagnostic context.

The composed Result is authoritative. Plain and foreign conversions clear FileSystem-specific context, while same-domain copies retain it. Conversion to Result preserves only the category/error identity.


The documentation for this struct was generated from the following file: