pub struct RuntimeBuilder { /* private fields */ }Implementations§
Source§impl RuntimeBuilder
impl RuntimeBuilder
Sourcepub fn new(worker_threads: NonZeroUsize) -> Self
pub fn new(worker_threads: NonZeroUsize) -> Self
Creates a builder for an explicit, non-zero worker count.
Sourcepub fn priority_weights(self, weights: PriorityWeights) -> Self
pub fn priority_weights(self, weights: PriorityWeights) -> Self
Replaces the default 8:4:1 priority weights.
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