Struct bonsaidb_local::config::Tasks
source · pub struct Tasks {
pub worker_count: usize,
pub parallelization: usize,
}
Expand description
Configuration options for background tasks.
Fields§
§worker_count: usize
Defines how many workers should be spawned to process tasks. This defaults to the 2x the number of cpu cores available to the system or 2, whichever is larger.
parallelization: usize
Defines how many simultaneous threads should be used when a task is parallelizable. This defaults to the nuber of cpu cores available to the system.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Tasks
impl Send for Tasks
impl Sync for Tasks
impl Unpin for Tasks
impl UnwindSafe for Tasks
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