[−][src]Enum dpdk_unix::scheduling::Nice
Represent a nice value.
For setting the current thread niceness, use the more modern Scheduler.
Variants
Positive_19Least 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_20Highest priority.
Methods
impl Nice[src]
pub fn set_autogroup_for_current_process(
self,
proc_path: &ProcPath
) -> Result<(), Error>[src]
self,
proc_path: &ProcPath
) -> Result<(), Error>
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]
only_set_if_is_some: Option<Self>,
proc_path: &ProcPath
) -> Result<(), Error>
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(&self) -> 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]
fn partial_cmp(&self, other: &Nice) -> Option<Ordering>[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.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) -> bool1.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) -> bool1.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) -> bool1.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]
fn eq(&self, other: &Nice) -> bool[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl Default for Nice[src]
impl Ord for Nice[src]
fn cmp(&self, other: &Nice) -> Ordering[src]
fn max(self, other: Self) -> Self1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
Compares and returns the minimum of two values. Read more
impl Hash for Nice[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T> From for T[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,