[][src]Enum dpdk_unix::scheduling::Nice

#[repr(i32)]
pub enum Nice { Positive_19, Positive_18, Positive_17, Positive_16, Positive_15, Positive_14, Positive_13, Positive_12, Positive_11, Positive_10, Positive_9, Positive_8, Positive_7, Positive_6, Positive_5, Positive_4, Positive_3, Positive_2, Positive_1, Zero, Negative_1, Negative_2, Negative_3, Negative_4, Negative_5, Negative_6, Negative_7, Negative_8, Negative_9, Negative_10, Negative_11, Negative_12, Negative_13, Negative_14, Negative_15, Negative_16, Negative_17, Negative_18, Negative_19, Negative_20, }

Represent a nice value.

For setting the current thread niceness, use the more modern Scheduler.

Variants

Positive_19

Least priority.

Positive_18Positive_17Positive_16Positive_15Positive_14Positive_13Positive_12Positive_11Positive_10Positive_9Positive_8Positive_7Positive_6Positive_5Positive_4Positive_3Positive_2Positive_1ZeroNegative_1Negative_2Negative_3Negative_4Negative_5Negative_6Negative_7Negative_8Negative_9Negative_10Negative_11Negative_12Negative_13Negative_14Negative_15Negative_16Negative_17Negative_18Negative_19Negative_20

Highest priority.

Methods

impl Nice[src]

pub fn set_autogroup_for_current_process(
    self,
    proc_path: &ProcPath
) -> Result<(), Error>
[src]

Set the autogroup for the current process.

pub fn set_autogroup_for_current_process_if_desired(
    only_set_if_is_some: Option<Self>,
    proc_path: &ProcPath
) -> Result<(), Error>
[src]

Set the autogroup for the current process.

pub fn set_current_process_group_priority(self) -> Result<(), ()>[src]

Returns an Err() if the user did not have permission to adjust the priority (eg was not privileged or had the capability CAP_SYS_NICE).

pub fn set_current_real_effective_user_priority(self) -> Result<(), ()>[src]

Returns an Err() if the user did not have permission to adjust the priority (eg was not privileged or had the capability CAP_SYS_NICE).

Trait Implementations

impl Eq for Nice[src]

impl Clone for Nice[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Into<i8> for Nice[src]

impl Into<i16> for Nice[src]

impl Into<i32> for Nice[src]

impl Into<i64> for Nice[src]

impl Into<isize> for Nice[src]

impl Copy for Nice[src]

impl PartialOrd<Nice> for Nice[src]

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl PartialEq<Nice> for Nice[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Default for Nice[src]

impl Ord for Nice[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Hash for Nice[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for Nice[src]

impl Display for Nice[src]

impl<'de> Deserialize<'de> for Nice[src]

Auto Trait Implementations

impl Send for Nice

impl Sync for Nice

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]