[−][src]Enum thread_priority::ThreadPriority
Thread priority enumeration.
Variants
Holds a value representing the minimum possible priority.
Specific(u32)
Holds a specific priority value. Should be in [0; 100] range,
a percentage value. The u32
value is reserved for different
OS'es support.
Holds a value representing the maximum possible priority. Should be used with caution, it solely depends on the target os where the program is going to be running on, how it will behave. On some systems, the whole system may become frozen if not used properly.
Methods
impl ThreadPriority
[src]
pub fn set_for_current(self) -> Result<(), Error>
[src]
Sets current thread's priority to this value.
Trait Implementations
impl Clone for ThreadPriority
[src]
fn clone(&self) -> ThreadPriority
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ThreadPriority
[src]
impl Debug for ThreadPriority
[src]
impl Eq for ThreadPriority
[src]
impl Ord for ThreadPriority
[src]
fn cmp(&self, other: &ThreadPriority) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<ThreadPriority> for ThreadPriority
[src]
fn eq(&self, other: &ThreadPriority) -> bool
[src]
fn ne(&self, other: &ThreadPriority) -> bool
[src]
impl PartialOrd<ThreadPriority> for ThreadPriority
[src]
fn partial_cmp(&self, other: &ThreadPriority) -> Option<Ordering>
[src]
fn lt(&self, other: &ThreadPriority) -> bool
[src]
fn le(&self, other: &ThreadPriority) -> bool
[src]
fn gt(&self, other: &ThreadPriority) -> bool
[src]
fn ge(&self, other: &ThreadPriority) -> bool
[src]
impl StructuralEq for ThreadPriority
[src]
impl StructuralPartialEq for ThreadPriority
[src]
impl TryFrom<ThreadPriority> for WinAPIThreadPriority
[src]
Auto Trait Implementations
impl RefUnwindSafe for ThreadPriority
impl Send for ThreadPriority
impl Sync for ThreadPriority
impl Unpin for ThreadPriority
impl UnwindSafe for ThreadPriority
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,