pub struct CpuConfig {
pub num_cpus: usize,
pub threads: Option<i16>,
pub threads_batch: Option<i16>,
pub use_percentage: f32,
}Fields§
§num_cpus: usize§threads: Option<i16>§threads_batch: Option<i16>§use_percentage: f32Implementations§
Source§impl CpuConfig
impl CpuConfig
pub fn thread_count_or_default(&self) -> i16
pub fn thread_count_batch_or_default(&self) -> i16
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CpuConfig
impl RefUnwindSafe for CpuConfig
impl Send for CpuConfig
impl Sync for CpuConfig
impl Unpin for CpuConfig
impl UnwindSafe for CpuConfig
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