#[repr(i32)]pub enum BoostPolicy {
PolicyUnspecified = 0,
PolicySchedOther = 1,
PolicySchedFifo = 2,
}
Variants§
PolicyUnspecified = 0
PolicySchedOther = 1
The default policy (e.g., CFS on Linux). Priority range: [0; 20] priority is interpreted as -(nice), i.e., 1 is slightly higher prio than default 0, 20 is the highest priority. Note: this is the opposite semantic of the cmdline nice, and is done for consistency with POLICY_SCHED_FIFO, so higher number == higher prio.
PolicySchedFifo = 2
The Real-time policy, Priority range: [1; 99]
Implementations§
Source§impl BoostPolicy
impl BoostPolicy
Source§impl BoostPolicy
impl BoostPolicy
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Trait Implementations§
Source§impl Clone for BoostPolicy
impl Clone for BoostPolicy
Source§fn clone(&self) -> BoostPolicy
fn clone(&self) -> BoostPolicy
Returns a copy 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 BoostPolicy
impl Debug for BoostPolicy
Source§impl Default for BoostPolicy
impl Default for BoostPolicy
Source§fn default() -> BoostPolicy
fn default() -> BoostPolicy
Returns the “default value” for a type. Read more
Source§impl From<BoostPolicy> for i32
impl From<BoostPolicy> for i32
Source§fn from(value: BoostPolicy) -> i32
fn from(value: BoostPolicy) -> i32
Converts to this type from the input type.
Source§impl Hash for BoostPolicy
impl Hash for BoostPolicy
Source§impl Ord for BoostPolicy
impl Ord for BoostPolicy
Source§fn cmp(&self, other: &BoostPolicy) -> Ordering
fn cmp(&self, other: &BoostPolicy) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BoostPolicy
impl PartialEq for BoostPolicy
Source§impl PartialOrd for BoostPolicy
impl PartialOrd for BoostPolicy
impl Copy for BoostPolicy
impl Eq for BoostPolicy
impl StructuralPartialEq for BoostPolicy
Auto Trait Implementations§
impl Freeze for BoostPolicy
impl RefUnwindSafe for BoostPolicy
impl Send for BoostPolicy
impl Sync for BoostPolicy
impl Unpin for BoostPolicy
impl UnwindSafe for BoostPolicy
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