[][src]Struct qt_core::q_thread::Priority

#[repr(transparent)]
pub struct Priority(_);

This enum type indicates how the operating system should schedule newly created threads.

C++ enum: QThread::Priority.

C++ documentation:

This enum type indicates how the operating system should schedule newly created threads.

Methods

impl Priority[src]

pub fn to_int(&self) -> c_int[src]

impl Priority[src]

pub const IdlePriority: Priority[src]

scheduled only when no other threads are running. (C++ enum variant: IdlePriority = 0)

pub const LowestPriority: Priority[src]

scheduled less often than LowPriority. (C++ enum variant: LowestPriority = 1)

pub const LowPriority: Priority[src]

scheduled less often than NormalPriority. (C++ enum variant: LowPriority = 2)

pub const NormalPriority: Priority[src]

the default priority of the operating system. (C++ enum variant: NormalPriority = 3)

pub const HighPriority: Priority[src]

scheduled more often than NormalPriority. (C++ enum variant: HighPriority = 4)

pub const HighestPriority: Priority[src]

scheduled more often than HighPriority. (C++ enum variant: HighestPriority = 5)

pub const TimeCriticalPriority: Priority[src]

scheduled as often as possible. (C++ enum variant: TimeCriticalPriority = 6)

pub const InheritPriority: Priority[src]

use the same priority as the creating thread. This is the default. (C++ enum variant: InheritPriority = 7)

Trait Implementations

impl Clone for Priority[src]

impl Copy for Priority[src]

impl Debug for Priority[src]

impl Eq for Priority[src]

impl From<Priority> for c_int[src]

impl From<i32> for Priority[src]

impl PartialEq<Priority> for Priority[src]

impl StructuralEq for Priority[src]

impl StructuralPartialEq for Priority[src]

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, U> CastInto<U> for T where
    U: CastFrom<T>, 
[src]

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

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

impl<T> StaticUpcast<T> for 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.