[][src]Struct may::Config

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

pub 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

pub fn get_workers(&self) -> usize
[src]

get the normal workers number

pub 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

pub fn get_io_workers(&self) -> usize
[src]

get the io workers number

pub fn set_pool_capacity(&self, capacity: usize) -> &Self
[src]

set cached coroutine pool number

if you pass 0 to it, will use internal default

pub fn get_pool_capacity(&self) -> usize
[src]

get the coroutine pool capacity

pub 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

pub fn get_stack_size(&self) -> usize
[src]

get the default coroutine stack size

Auto Trait Implementations

impl Send for Config

impl Sync for Config

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]