Module syncpool::prelude[][src]

Structs

SyncPool

Traits

PoolManager
PoolState

Functions

default_box

Similar to the make_box API, the default_box API is a wrapper over the unsafer version of the directly-to-the-heap ones. If the struct wrapped in the box has implemented the Default trait, then one can call this API that will invoke the Default::default to initialize the object, such that the caller won't need to supply a closure to initialize all the fields.

make_box

This API is a wrapper on the unsafer version of the direct-to-the-heap-box APIs. The API is safe because it is the caller's responsiblity to supply the struct initialier as a closure, such that after calling the struct initializer, the returned object shall be valid and meaningful.

raw_box

Create a box structure without moving the wrapped value from the stack to the heap. This API is most useful when the wrapped value is too large for the default stack size, such that initializing and packing the valuing into the box is a pain.

raw_box_zeroed

Similar to raw_box, this API creates a box structure without moving the wrapped value from the stack to the heap. This API is most useful when the wrapped value is too large for the default stack size, such that initializing and packing the valuing into the box is a pain.