[][src]Struct dpdk_unix::scheduling::ProcessNiceness

pub struct ProcessNiceness {
    pub all_other_processes_for_current_user: Nice,
    pub all_other_processes_in_process_group: Nice,
    pub share_of_cpu_cycles_in_autogroup: Option<Nice>,
}

Nice settings for the current process.

Defaults to aggresive promotion of the current process.

Fields

all_other_processes_for_current_user: Nice

Downgrade all other processes for the current user to this value.

all_other_processes_in_process_group: Nice

Downgrade all other processes in the process group to this value.

share_of_cpu_cycles_in_autogroup: Option<Nice>

If autogroups are enabled, should we take as close to 100% of all CPU cycles in the autogroup?

Methods

impl ProcessNiceness[src]

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

Adjusts in favour of the current process.

Trait Implementations

impl Eq for ProcessNiceness[src]

impl Clone for ProcessNiceness[src]

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

Performs copy-assignment from source. Read more

impl Copy for ProcessNiceness[src]

impl PartialOrd<ProcessNiceness> for ProcessNiceness[src]

impl PartialEq<ProcessNiceness> for ProcessNiceness[src]

impl Default for ProcessNiceness[src]

impl Ord for ProcessNiceness[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 ProcessNiceness[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 ProcessNiceness[src]

impl<'de> Deserialize<'de> for ProcessNiceness where
    ProcessNiceness: Default
[src]

Auto Trait Implementations

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> 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]