[−][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
impl Sync for Config
impl Send for Config
impl Unpin for Config
impl RefUnwindSafe for Config
impl UnwindSafe for Config
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,