Note that this is meant to be a common subset of useful types, not an exhaustive list.
Box<T>, casually referred to as a 'box', provides the simplest form of heap allocation in Rust. Boxes provide ownership for this allocation, and drop their contents when they go out of scope. Boxes also ensure that they never allocate more thanisize::MAXbytes.
Arc: Atomically Reference-Counted pointer, which can be used in multithreaded environments to prolong the lifetime of some data until all the threads have finished using it.Barrier: Ensures multiple threads will wait for each other to reach a point in the program, before continuing execution all together.Condvar: Condition Variable, providing the ability to block a thread while waiting for an event to occur.mpsc: Multi-producer, single-consumer queues (channels), used for message-based communication. Can provide a lightweight inter-thread synchronisation mechanism, at the cost of some extra memory.