[][src]Enum thread_priority::ThreadPriority

pub enum ThreadPriority {
    Min,
    Specific(u32),
    Max,
}

Thread priority enumeration.

Variants

Min

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.

Max

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]

impl Copy for ThreadPriority[src]

impl Debug for ThreadPriority[src]

impl Eq for ThreadPriority[src]

impl Ord for ThreadPriority[src]

impl PartialEq<ThreadPriority> for ThreadPriority[src]

impl PartialOrd<ThreadPriority> for ThreadPriority[src]

impl StructuralEq for ThreadPriority[src]

impl StructuralPartialEq for ThreadPriority[src]

impl TryFrom<ThreadPriority> for WinAPIThreadPriority[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.