[−][src]Struct may::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
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,