stdlib/processView source ↗
process
10 items · generated by scribe fromstdlib/process.fd· synced 2026-11-15
Contents
- process_exit (function)
- process_system (function)
- process_run (function)
- process_ok (function)
- process_stdout (function)
- process_stderr (function)
- process_code (function)
- process_close (function)
- process_pid (function)
- process_capture (function)
process_exit
Exit the process with the given exit code.
pub fn process_exit(code: i64) -> void {Parameters:
code:i64
Returns: void
Defined at line 18
process_system
Run a shell command and return the exit status. Returns -1 on failure.
pub fn process_system(cmd: str) -> i64 {Parameters:
cmd:str
Returns: i64
Defined at line 24
process_run
Run cmd through the platform shell (sh -c / cmd /C) capturing its stdout, stderr and exit code. Returns an opaque result handle, or 0 if the process could not be started.
pub fn process_run(cmd: str) -> i64 {Parameters:
cmd:str
Returns: i64
Defined at line 36
process_ok
True when h is a live process result.
pub fn process_ok(h: i64) -> bool {Parameters:
h:i64
Returns: bool
Defined at line 41
process_stdout
The captured standard output of a finished process ("" on bad handle).
pub fn process_stdout(h: i64) -> str {Parameters:
h:i64
Returns: str
Defined at line 46
process_stderr
The captured standard error of a finished process ("" on bad handle).
pub fn process_stderr(h: i64) -> str {Parameters:
h:i64
Returns: str
Defined at line 51
process_code
The process exit code (-1 on a bad handle).
pub fn process_code(h: i64) -> i64 {Parameters:
h:i64
Returns: i64
Defined at line 56
process_close
Release a process result handle.
pub fn process_close(h: i64) -> void {Parameters:
h:i64
Returns: void
Defined at line 61
process_pid
The current process id.
pub fn process_pid() -> i64 {Returns: i64
Defined at line 66
process_capture
Convenience: run cmd, return (stdout, code) after releasing the handle. Useful when stderr is not needed.
pub fn process_capture(cmd: str) -> Vec<str> {Parameters:
cmd:str
Returns: Vec<str>
Defined at line 72
Generated by scribe, the Fides documentation generator