Struct may::Config
[−]
[src]
pub struct Config;
May
Configuration type
Methods
impl Config
[src]
the config should be called at the program beginning
successive call would not tack effect for that the scheduler is already started
fn set_workers(&self, workers: usize) -> &Self
[src]
set the worker thread number
the minimum worker thread is 1, if you pass 0 to it, will use internal default
fn get_workers(&self) -> usize
[src]
get the normal workers number
fn set_io_workers(&self, workers: usize) -> &Self
[src]
set the io worker thread number
if you pass in 0, all the coroutines would be scheduled on worker thread
fn get_io_workers(&self) -> usize
[src]
get the io workers number
fn set_pool_capacity(&self, capacity: usize) -> &Self
[src]
set coroutine pool number, 0 means unlimited
if you pass 0 to it, will use internal default
fn get_pool_capacity(&self) -> usize
[src]
get the coroutine pool capacity
fn set_stack_size(&self, size: usize) -> &Self
[src]
set default coroutine stack size in usize
if you pass 0 to it, will use internal default
fn get_stack_size(&self) -> usize
[src]
get the default coroutine stack size