About 208,000 results
Open links in new tab
  1. Graceful Shutdown and Cleanup - The Rust Programming Language

    The Rust Programming Language Graceful Shutdown and Cleanup The code in Listing 21-20 is responding to requests asynchronously through the use of a thread pool, as we intended. We …

  2. Loop expressions - The Rust Reference

    A loop expression denotes an infinite loop. A while expression loops until a predicate is false. A for expression extracts values from an iterator, looping until the iterator is empty. A labelled …

  3. exit in std::process - Rust

    Nov 7, 2025 · Note that if a binary contains multiple copies of the Rust runtime (e.g., when combining multiple cdylib or staticlib), they each have their own separate lock, so from the …

  4. std::thread - Rust

    Nov 7, 2025 · Native threads. The threading model An executing Rust program consists of a collection of native OS threads, each with their own stack and local state. Threads can be …

  5. Child in std::process - Rust

    Oct 28, 2025 · Representation of a running or exited child process. This structure is used to represent and manage child processes. A child process is created via the Command struct, …

  6. Command in std::process - Rust

    Nov 7, 2025 · A process builder, providing fine-grained control over how a new process should be spawned. A default configuration can be generated using Command::new(program), where …

  7. Using Threads to Run Code Simultaneously - The Rust ... - Learn Rust

    Bugs that only happen in certain situations and are hard to reproduce and fix reliably Rust attempts to mitigate the negative effects of using threads, but programming in a multithreaded …

  8. JoinHandle in std::thread - Rust

    Oct 28, 2025 · An owned permission to join on a thread (block on its termination). A JoinHandle detaches the associated thread when it is dropped, which means that there is no longer any …

  9. Instant in std::time - Rust

    Nov 7, 2025 · In older Rust versions this lead to a panic instead. checked_duration_since can be used to detect and handle situations where monotonicity is violated, or Instant s are subtracted …

  10. channel in std::sync::mpsc - Rust

    Nov 7, 2025 · Creates a new asynchronous channel, returning the sender/receiver halves. All data sent on the Sender will become available on the Receiver in the same order as it was sent, …