Enum miri::concurrency::thread::ThreadState
source · pub enum ThreadState {
Enabled,
BlockedOnJoin(ThreadId),
BlockedOnSync,
Terminated,
}
Expand description
The state of a thread.
Variants
Enabled
The thread is enabled and can be executed.
BlockedOnJoin(ThreadId)
The thread tried to join the specified thread and is blocked until that thread terminates.
BlockedOnSync
The thread is blocked on some synchronization primitive. It is the responsibility of the synchronization primitives to track threads that are blocked by them.
Terminated
The thread has terminated its execution. We do not delete terminated threads (FIXME: why?).
Trait Implementations
sourceimpl Clone for ThreadState
impl Clone for ThreadState
sourcefn clone(&self) -> ThreadState
fn clone(&self) -> ThreadState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ThreadState
impl Debug for ThreadState
sourceimpl PartialEq<ThreadState> for ThreadState
impl PartialEq<ThreadState> for ThreadState
sourcefn eq(&self, other: &ThreadState) -> bool
fn eq(&self, other: &ThreadState) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
impl<V, T> VZip<V> for Twhere
V: MultiLane<T>,
fn vzip(self) -> V
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes
Size for each variant:
Enabled
: 0 bytesBlockedOnJoin
: 4 bytesBlockedOnSync
: 0 bytesTerminated
: 0 bytes