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
KiB4
KiB8
KiB16
KiB32
KiB64
KiB128
KiB256
KiB512
MiB
MiB2
MiB4
MiB8
Trait Implementations
impl Copy for StackSize
[src]
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