Module process

Source
Expand description

Native processes and threads.

Extends: std::{process, thread}


Macros§

sleep4std
A more compact Thread::sleep.
thread_localstd
std Declare a new thread local storage key of type ThreadLocalKey.

Structs§

Processstd
std Representation of a running or exited child process.
ProcessCommandstd
std A builder for configuring and spawning new processes.
ProcessCommandArgsstd
std An iterator over the command arguments.
ProcessCommandEnvsstd
std An iterator over the command environment variables.
ProcessExitCodestd
⚖️ std The status code the process returns to its parent on normal termination.
ProcessExitStatusstd
⚖️ std Describes the result of a process after it has terminated.
ProcessOutputstd
std The output of a finished process.
ProcessStderrstd
std A handle to a child process’s stderr.
ProcessStdinstd
std A handle to a child process’s standard input (stdin).
ProcessStdiostd
std Specifies how to handle standard I/O streams in ProcessCommand.
ProcessStdoutstd
std A handle to a child process’s standard output (stdout).
SleepSpin
Threadstd
std A handle to a thread.
ThreadAccessErrorstd
🚩 std An error returned by ThreadLocalKey::try_with.
ThreadBuilderstd
std Thread factory, which can be used to configure the properties of a new thread.
ThreadIdstd
std A unique identifier for a running thread.
ThreadJoinHandlestd
std An owned permission to join on a thread (block on its termination).
ThreadLocalKeystd
std A thread local storage key which owns its contents.
ThreadScopestd
std A scope to spawn scoped threads in.
ThreadScopedJoinHandlestd
std An owned permission to join on a scoped thread (block on its termination).

Enums§

SpinStrategy

Traits§

ExtProcess
🌐 Extension trait providing additional methods for Processes.
ExtThread
🌐 Extension trait providing additional methods for Threads.
ProcessTerminationstd
std A trait for implementing arbitrary return types in the main function.

Type Aliases§

ThreadResultstd
⚖️ std A specialized Result type for threads.