#[repr(transparent)]pub struct SDL_ThreadPriority(pub c_int);Expand description
The SDL thread priority.
SDL will make system changes as necessary in order to apply the thread
priority. Code which attempts to control thread state related to priority
should be aware that calling SDL_SetCurrentThreadPriority may alter such
state. SDL_HINT_THREAD_PRIORITY_POLICY can be used to control aspects of
this behavior.
§Availability
This enum is available since SDL 3.2.0.
§Known values (sdl3-sys)
| Associated constant | Global constant | Description |
|---|---|---|
LOW | SDL_THREAD_PRIORITY_LOW | |
NORMAL | SDL_THREAD_PRIORITY_NORMAL | |
HIGH | SDL_THREAD_PRIORITY_HIGH | |
TIME_CRITICAL | SDL_THREAD_PRIORITY_TIME_CRITICAL |
Tuple Fields§
§0: c_intImplementations§
Trait Implementations§
Source§impl Clone for SDL_ThreadPriority
impl Clone for SDL_ThreadPriority
Source§fn clone(&self) -> SDL_ThreadPriority
fn clone(&self) -> SDL_ThreadPriority
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SDL_ThreadPriority
Available on crate feature debug-impls only.
impl Debug for SDL_ThreadPriority
Available on crate feature
debug-impls only.Source§impl Default for SDL_ThreadPriority
impl Default for SDL_ThreadPriority
Source§fn default() -> SDL_ThreadPriority
fn default() -> SDL_ThreadPriority
Returns the “default value” for a type. Read more
Source§impl From<SDL_ThreadPriority> for c_int
impl From<SDL_ThreadPriority> for c_int
Source§fn from(value: SDL_ThreadPriority) -> Self
fn from(value: SDL_ThreadPriority) -> Self
Converts to this type from the input type.
Source§impl GroupMetadata for SDL_ThreadPriority
Available on crate feature metadata only.
impl GroupMetadata for SDL_ThreadPriority
Available on crate feature
metadata only.Source§const GROUP_METADATA: &'static Group
const GROUP_METADATA: &'static Group
Metadata for this group
Source§impl Hash for SDL_ThreadPriority
impl Hash for SDL_ThreadPriority
Source§impl Ord for SDL_ThreadPriority
impl Ord for SDL_ThreadPriority
Source§fn cmp(&self, other: &SDL_ThreadPriority) -> Ordering
fn cmp(&self, other: &SDL_ThreadPriority) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<SDL_ThreadPriority> for c_int
impl PartialEq<SDL_ThreadPriority> for c_int
Source§impl PartialEq<i32> for SDL_ThreadPriority
impl PartialEq<i32> for SDL_ThreadPriority
Source§impl PartialEq for SDL_ThreadPriority
impl PartialEq for SDL_ThreadPriority
Source§impl PartialOrd for SDL_ThreadPriority
impl PartialOrd for SDL_ThreadPriority
impl Copy for SDL_ThreadPriority
impl Eq for SDL_ThreadPriority
impl StructuralPartialEq for SDL_ThreadPriority
Auto Trait Implementations§
impl Freeze for SDL_ThreadPriority
impl RefUnwindSafe for SDL_ThreadPriority
impl Send for SDL_ThreadPriority
impl Sync for SDL_ThreadPriority
impl Unpin for SDL_ThreadPriority
impl UnwindSafe for SDL_ThreadPriority
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more