pub enum ThreadState {
Running,
Ready,
Blocked,
Suspended,
Terminated,
Unknown,
}Expand description
Thread state, matching ove_thread_state_t.
Variants§
Running
The thread is currently executing on a CPU core.
Ready
The thread is ready to run but waiting for a CPU slot.
Blocked
The thread is waiting on a synchronization primitive or I/O.
Suspended
The thread has been explicitly suspended via Thread::suspend.
Terminated
The thread has finished executing.
Unknown
The state reported by the RTOS does not match any known variant.
Trait Implementations§
Source§impl Clone for ThreadState
impl Clone for ThreadState
Source§fn clone(&self) -> ThreadState
fn clone(&self) -> 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 ThreadState
impl Debug for ThreadState
Source§impl PartialEq for ThreadState
impl PartialEq for ThreadState
impl Copy for ThreadState
impl Eq for ThreadState
impl StructuralPartialEq for ThreadState
Auto Trait Implementations§
impl Freeze for ThreadState
impl RefUnwindSafe for ThreadState
impl Send for ThreadState
impl Sync for ThreadState
impl Unpin for ThreadState
impl UnwindSafe for 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