pub fn set_self_priority(which: Which, priority: i32) -> Result<(), ()>
Set the scheduling priority for the Which of the calling process
Which
Priorities are usually in the range of -20..19, dependent on your system.