Enum ThreadState
pub enum ThreadState {
Initializing,
Ready,
Running,
Paused,
Stopping,
Terminated,
Error,
}Expand description
Thread lifecycle states
Variants§
Initializing
Thread is being initialized
Ready
Thread is ready to start
Running
Thread is running normally
Paused
Thread is paused
Stopping
Thread is stopping
Terminated
Thread has terminated
Error
Thread is in error state
Trait Implementations§
§impl Clone for ThreadState
impl Clone for ThreadState
§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 more§impl Debug for ThreadState
impl Debug for ThreadState
§impl Default for ThreadState
impl Default for ThreadState
§fn default() -> ThreadState
fn default() -> ThreadState
Returns the “default value” for a type. Read more
§impl Hash for ThreadState
impl Hash for ThreadState
§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.