rstd 0.1.0
Loading...
Searching...
No Matches
rstd::process::ExitStatus Struct Referenceexport
module rstd

Describes the result of a process after it has terminated. More...

Public Member Functions

constexpr auto success () const noexcept -> bool
 Was termination successful? Returns true if exit code was 0.
 
constexpr auto code () const noexcept -> Option< i32 >
 Returns the exit code if the process exited normally.
 
constexpr auto signal () const noexcept -> Option< i32 >
 Returns the signal number if the process was killed by a signal (Unix).
 

Static Public Member Functions

static constexpr auto from_code (i32 code) noexcept -> ExitStatus
 Construct from a raw exit code (process exited normally).
 
static constexpr auto from_signal (i32 sig) noexcept -> ExitStatus
 Construct from a signal number (process was killed).
 

Detailed Description

Describes the result of a process after it has terminated.


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