Enum context_bind::StackSize [] [src]

pub enum StackSize {
    KiB4,
    KiB8,
    KiB16,
    KiB32,
    KiB64,
    KiB128,
    KiB256,
    KiB512,
    MiB,
    MiB2,
    MiB4,
    MiB8,
}

Define the size of a stack

The default stack size on most systems is 8MiB. Generally speaking you will lose the light weight feel of M:N threading as you approach 8MiB. Smaller threads are better but too small and you risk crashing programs due to stack overflows.

Variants

Trait Implementations

impl Copy for StackSize
[src]

impl Clone for StackSize
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for StackSize
[src]

Formats the value using the given formatter.