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

KiB4KiB8KiB16KiB32KiB64KiB128KiB256KiB512MiBMiB2MiB4MiB8

Trait Implementations

impl Debug for StackSize
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for StackSize
[src]

fn clone(&self) -> StackSize

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for StackSize
[src]