Enum miri::BlockReason
source · pub enum BlockReason {
Join(ThreadId),
Sleep,
Mutex(MutexId),
Condvar(CondvarId),
RwLock(RwLockId),
Futex {
addr: u64,
},
InitOnce(InitOnceId),
Epoll,
}
Expand description
Keeps track of what the thread is blocked on.
Variants§
Join(ThreadId)
The thread tried to join the specified thread and is blocked until that thread terminates.
Sleep
Waiting for time to pass.
Mutex(MutexId)
Blocked on a mutex.
Condvar(CondvarId)
Blocked on a condition variable.
RwLock(RwLockId)
Blocked on a reader-writer lock.
Futex
Blocked on a Futex variable.
InitOnce(InitOnceId)
Blocked on an InitOnce.
Epoll
Blocked on epoll.
Trait Implementations§
source§impl Clone for BlockReason
impl Clone for BlockReason
source§fn clone(&self) -> BlockReason
fn clone(&self) -> BlockReason
Returns a copy 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 BlockReason
impl Debug for BlockReason
source§impl PartialEq for BlockReason
impl PartialEq for BlockReason
impl Copy for BlockReason
impl Eq for BlockReason
impl StructuralPartialEq for BlockReason
Auto Trait Implementations§
impl Freeze for BlockReason
impl RefUnwindSafe for BlockReason
impl Send for BlockReason
impl Sync for BlockReason
impl Unpin for BlockReason
impl UnwindSafe for BlockReason
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)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: 16 bytes
Size for each variant:
Join
: 4 bytesSleep
: 0 bytesMutex
: 4 bytesCondvar
: 4 bytesRwLock
: 4 bytesFutex
: 12 bytesInitOnce
: 4 bytesEpoll
: 0 bytes