doc.rust-lang.org
pub struct BarrierWaitResult
A BarrierWaitResult is returned by Barrier::wait() when all threads in the Barrier have rendezvoused.
struct
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn wait(&self) -> BarrierWaitResult
Blocks the current thread until all threads have rendezvoused here.
method
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub const fn new(n: usize) -> Barrier
Creates a new barrier that can block a given number of threads.
associated_function
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Barrier
A barrier enables multiple threads to synchronize the beginning of some computation.
struct
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn timed_out(&self) -> bool
Returns true if the wait was known to have timed out.
method
std
Stable since 1.5.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct WaitTimeoutResult
A type indicating whether a timed wait on a condition variable returned due to a time out or not.
struct
std
Stable since 1.5.0
Version 1.100.0-nightly
doc.rust-lang.org
pub mod sync
Useful synchronization primitives.
module
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
primitive str
String slices.
primitive
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
primitive slice
A dynamically-sized view into a contiguous sequence, [T].
primitive
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
primitive reference
References, &T and &mut T.
primitive
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn id() -> u32
Returns the OS-assigned process identifier associated with this process.
function
std
Stable since 1.26.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn exit(code: i32) -> never
Terminates the current process with the specified exit code.
function
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn abort() -> never
Terminates the process in an abnormal fashion.
function
std
Stable since 1.17.0
Version 1.100.0-nightly
doc.rust-lang.org
fn report(self) -> ExitCode
Is called to get the representation of the value as status code. This status code is returned to the operating system.
method
std
Stable since 1.61.0
Version 1.100.0-nightly
doc.rust-lang.org
pub trait Termination
A trait for implementing arbitrary return types in the main function.
trait
std
Stable since 1.61.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn piped() -> Stdio
A new pipe should be arranged to connect the parent and child processes.
associated_function
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn null() -> Stdio
This stream will be ignored. This is the equivalent of attaching the stream to /dev/null.
associated_function
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub fn inherit() -> Stdio
The child inherits from the corresponding parent descriptor.
associated_function
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Stdio
Describes what to do with a standard I/O stream for a child process when passed to the stdin, stdout, and stderr methods of Command.
struct
std
Stable since 1.0.0
Version 1.100.0-nightly
doc.rust-lang.org
pub struct Output
The output of a finished process.
struct
std
Stable since 1.0.0
Version 1.100.0-nightly