doc.rust-lang.org
pub trait OsStringExt
Platform-specific extensions to OsString.
trait
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn from_bytes(slice: &[u8]) -> &Self
Creates an OsStr from a byte slice.
associated_function
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn as_bytes(&self) -> &[u8]
Gets the underlying byte view of the OsStr slice.
method
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait OsStrExt
Platform-specific extensions to OsStr.
trait
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod ffi
WASI-specific extensions to primitives in the std::ffi module
module
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod wasi
Platform-specific extensions to std for the WebAssembly System Interface (WASI).
module
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn into_pthread_t(self) -> RawPthread
Consumes the thread, returning the raw pthread_t
method
std
Stable since 1.9.0
Version 1.100.0-nightly
doc.rust-lang.org
fn as_pthread_t(&self) -> RawPthread
Extracts the raw pthread_t without taking ownership
method
std
Stable since 1.9.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait JoinHandleExt
Unix-specific extensions to JoinHandle.
trait
std
Stable since 1.9.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod thread
Unix-specific extensions to primitives in the std::thread module.
module
std
Stable since 1.9.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod raw
Unix-specific primitives available on all unix platforms.
module
std
Stable since 1.1.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn parent_id() -> u32
Returns the OS-assigned process identifier associated with this process's parent.
function
std
Stable since 1.27.0
Version 1.100.0-nightly
doc.rust-lang.org
fn stopped_signal(&self) -> Option<i32>
If the process was stopped by a signal, returns that signal.
method
std
Stable since 1.58.0
Version 1.100.0-nightly
doc.rust-lang.org
fn signal(&self) -> Option<i32>
If the process was terminated by a signal, returns that signal.
method
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn into_raw(self) -> i32
Returns the underlying raw wait status.
method
std
Stable since 1.58.0
Version 1.100.0-nightly
doc.rust-lang.org
fn from_raw(raw: i32) -> Self
Creates a new ExitStatus or ExitStatusError from the raw underlying integer status value from wait.
associated_function
std
Stable since 1.12.0
Version 1.100.0-nightly
doc.rust-lang.org
fn core_dumped(&self) -> bool
If the process was terminated by a signal, says whether it dumped core.
method
std
Stable since 1.58.0
Version 1.100.0-nightly
doc.rust-lang.org
fn continued(&self) -> bool
Whether the process was continued from a stopped status.
method
std
Stable since 1.58.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait ExitStatusExt
Unix-specific extensions to ExitStatus and ExitStatusError.
trait
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
fn uid(&mut self, id: u32) -> &mut process::Command
Sets the child process's user ID. This translates to a setuid call in the child process. Failure in the setuid call will cause the spawn to fail.
method
std
Stable since 1.0.0
Version 1.100.0-nightly