[−][src]Enum dpdk_unix::scheduling::Nice
Represent a nice
value.
Variants
Positive_19
Least priority.
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
Highest 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_thread_priority(self) -> Result<(), ()>
[src]
This is a Linux-only thing.
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_process_priority(self) -> Result<(), ()>
[src]
This replaces the use of the legacy nice()
function.
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
).
On Linux, actually sets the priority for only the current thread.
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) -> 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]
fn eq(&self, other: &Nice) -> bool
[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 cmp(&self, other: &Nice) -> Ordering
[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<__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>,