pub enum BlockReason {
Join(ThreadId),
Sleep,
Mutex,
Condvar(CondvarId),
RwLock(RwLockId),
Futex,
InitOnce(InitOnceId),
Epoll,
Eventfd,
UnnamedSocket,
}
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
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.
Eventfd
Blocked on eventfd.
UnnamedSocket
Blocked on unnamed_socket.
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,
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:
Join
: 4 bytesSleep
: 0 bytesMutex
: 0 bytesCondvar
: 4 bytesRwLock
: 4 bytesFutex
: 0 bytesInitOnce
: 4 bytesEpoll
: 0 bytesEventfd
: 0 bytesUnnamedSocket
: 0 bytes