pub struct RuntimeBuilder { /* private fields */ }Expand description
Configures a Runtime.
Currently single-threaded (thread-per-core). Multi-thread work-stealing will be added in a future phase.
Implementations§
Source§impl RuntimeBuilder
impl RuntimeBuilder
Sourcepub fn thread_per_core(self) -> Self
pub fn thread_per_core(self) -> Self
Use thread-per-core threading model (default).
Sourcepub fn enable_time(self) -> Self
pub fn enable_time(self) -> Self
Enable the timer wheel.
Auto Trait Implementations§
impl Freeze for RuntimeBuilder
impl RefUnwindSafe for RuntimeBuilder
impl Send for RuntimeBuilder
impl Sync for RuntimeBuilder
impl Unpin for RuntimeBuilder
impl UnsafeUnpin for RuntimeBuilder
impl UnwindSafe for RuntimeBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more