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