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

Important traits for &'a mut R

set the worker thread number

the minimum worker thread is 1, if you pass 0 to it, will use internal default

get the normal workers number

Important traits for &'a mut R

set the io worker thread number

if you pass in 0, all the coroutines would be scheduled on worker thread

get the io workers number

Important traits for &'a mut R

set cached coroutine pool number

if you pass 0 to it, will use internal default

get the coroutine pool capacity

Important traits for &'a mut R

set default coroutine stack size in usize

if you pass 0 to it, will use internal default

get the default coroutine stack size

Auto Trait Implementations

impl Send for Config

impl Sync for Config