Enum keos::thread::ThreadState
source · pub enum ThreadState {
Runnable,
Running,
Exited(i32),
Idle,
Parked,
}
Expand description
A possible state of the thread.
Variants§
Runnable
Thread is runnable.
Running
Thread is running.
Exited(i32)
Thread is exited with exitcode.
Idle
Thread is idle.
Parked
Thread is parked.
Trait Implementations§
source§impl Clone for ThreadState
impl Clone for ThreadState
source§fn clone(&self) -> ThreadState
fn clone(&self) -> ThreadState
Returns a copy of the value. Read more
1.0.0§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<ThreadState> for ThreadState
impl PartialEq<ThreadState> for ThreadState
impl Copy for ThreadState
impl Eq for ThreadState
impl StructuralEq for ThreadState
impl StructuralPartialEq for ThreadState
Auto Trait Implementations§
impl RefUnwindSafe for ThreadState
impl Send for ThreadState
impl Sync for ThreadState
impl Unpin for ThreadState
impl UnwindSafe for ThreadState
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
const: unstable§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more