#[repr(transparent)]pub struct SDL_ThreadState(pub c_uint);Expand description
The SDL thread state.
The current state of a thread can be checked by calling SDL_GetThreadState.
Available Since: This enum is available since SDL 3.2.0.
See Also: SDL_GetThreadState
Tuple Fields§
§0: c_uintImplementations§
Source§impl SDL_ThreadState
impl SDL_ThreadState
Sourcepub const SDL_THREAD_UNKNOWN: SDL_ThreadState
pub const SDL_THREAD_UNKNOWN: SDL_ThreadState
< The thread is not valid
Sourcepub const SDL_THREAD_ALIVE: SDL_ThreadState
pub const SDL_THREAD_ALIVE: SDL_ThreadState
< The thread is currently running
Sourcepub const SDL_THREAD_DETACHED: SDL_ThreadState
pub const SDL_THREAD_DETACHED: SDL_ThreadState
< The thread is detached and can’t be waited on
Sourcepub const SDL_THREAD_COMPLETE: SDL_ThreadState
pub const SDL_THREAD_COMPLETE: SDL_ThreadState
< The thread has finished and should be cleaned up with SDL_WaitThread()
Trait Implementations§
Source§impl Clone for SDL_ThreadState
impl Clone for SDL_ThreadState
Source§fn clone(&self) -> SDL_ThreadState
fn clone(&self) -> SDL_ThreadState
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_ThreadState
impl Debug for SDL_ThreadState
Source§impl Hash for SDL_ThreadState
impl Hash for SDL_ThreadState
Source§impl PartialEq for SDL_ThreadState
impl PartialEq for SDL_ThreadState
impl Copy for SDL_ThreadState
impl Eq for SDL_ThreadState
impl StructuralPartialEq for SDL_ThreadState
Auto Trait Implementations§
impl Freeze for SDL_ThreadState
impl RefUnwindSafe for SDL_ThreadState
impl Send for SDL_ThreadState
impl Sync for SDL_ThreadState
impl Unpin for SDL_ThreadState
impl UnsafeUnpin for SDL_ThreadState
impl UnwindSafe for SDL_ThreadState
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