Struct photonio_uring::runtime::Builder
source · pub struct Builder { /* private fields */ }
Expand description
Builds a Runtime
with custom options.
Implementations
sourceimpl Builder
impl Builder
sourcepub fn num_threads(self, num_threads: usize) -> Self
pub fn num_threads(self, num_threads: usize) -> Self
Sets the number of worker threads to execute tasks.
The default value is set to the number of CPU cores.
sourcepub fn thread_stack_size(self, thread_stack_size: usize) -> Self
pub fn thread_stack_size(self, thread_stack_size: usize) -> Self
Sets the stack size for each worker thread.
The default value is 2 MiB.
sourcepub fn event_interval(self, event_interval: usize) -> Self
pub fn event_interval(self, event_interval: usize) -> Self
Sets the number of tasks to poll per event cycle.
The default value is 61.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more