pub enum ThreadingMode {
Disjoint,
Contended,
}Expand description
Currently initialized threading mode.
Variants§
Disjoint
Disjoint mode is the ideal mode that multiple CPUs are available, and thus foreground thread and background threads may run on disjoint set of CPUs.
This is the mode set whenever there’re 2 or more CPUs permitted.
Contended
Contended mode is the downgrade mode that only single CPU is available, and foreground thread and background threads have to run on that CPU.
This mode is set when there’s single CPU or we are unable to get permitted CPU set.
Trait Implementations§
Source§impl Clone for ThreadingMode
impl Clone for ThreadingMode
Source§fn clone(&self) -> ThreadingMode
fn clone(&self) -> ThreadingMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThreadingMode
impl Debug for ThreadingMode
Source§impl PartialEq for ThreadingMode
impl PartialEq for ThreadingMode
impl Copy for ThreadingMode
impl Eq for ThreadingMode
impl StructuralPartialEq for ThreadingMode
Auto Trait Implementations§
impl Freeze for ThreadingMode
impl RefUnwindSafe for ThreadingMode
impl Send for ThreadingMode
impl Sync for ThreadingMode
impl Unpin for ThreadingMode
impl UnwindSafe for ThreadingMode
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