Skip to main content

validate_thread_mode

Function validate_thread_mode 

Source
pub fn validate_thread_mode(mode: ThreadMode, quiet: bool) -> ThreadMode
Expand description

Validate the thread mode and emit warnings if necessary.

In v0.3.2, single-threaded mode is not supported. If the user specifies --thread-mode single, a warning is emitted.

§Arguments

  • mode - The thread mode specified by the user.
  • quiet - If true, suppress warning messages.

§Returns

The validated thread mode (always Multi in v0.3.2).