rstd 0.1.0
Loading...
Searching...
No Matches
rstd::io::error::Error Struct Referenceexport
module rstd

The error type for I/O operations. More...

Public Member Functions

auto kind () const noexcept -> ErrorKind
 Returns the ErrorKind for this error.
 
auto raw_os_error () const noexcept -> Option< RawOsError >
 Returns the raw OS error code if this error originated from the OS.
 
auto static_message () const noexcept -> const char *
 Returns the static message if present (Tag::Message only).
 
auto tag () const noexcept -> Tag
 Returns the internal tag indicating the error representation.
 

Static Public Member Functions

static auto from_raw_os_error (RawOsError code) noexcept -> Error
 Construct from a raw OS error code (errno / GetLastError).
 
static auto from_kind (ErrorKind k) noexcept -> Error
 Construct from an ErrorKind.
 
static constexpr auto new_const (ErrorKind k, const char *msg) noexcept -> Error
 Construct a static-message error (no allocation).
 

Detailed Description

The error type for I/O operations.


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