#[non_exhaustive]pub enum SuspensionReason {
Show 17 variants
YieldNow,
Join(TaskId),
ScopeDrain,
Park,
Mutex,
Condvar,
Semaphore,
Notify,
ChannelSend,
ChannelRecv,
IoRead,
IoWrite,
IoAccept,
IoConnect,
Blocking,
Dns,
FileIo,
}Expand description
A reason a task voluntarily returned to its carrier.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
YieldNow
Explicit cooperative yield.
Join(TaskId)
Waiting for a child stack to be reclaimed.
ScopeDrain
Draining a borrowed local scope.
Park
A modeled parking generation.
Mutex
Waiting for exclusive access to a virtual mutex.
Condvar
Waiting for a condition-variable notification.
Semaphore
Waiting for a semaphore permit.
Notify
Waiting for a notification permit.
ChannelSend
Waiting for capacity in a bounded channel.
ChannelRecv
Waiting for a value from a bounded channel.
IoRead
Waiting for socket read readiness.
IoWrite
Waiting for socket write readiness.
IoAccept
Waiting for an incoming connection.
IoConnect
Waiting for a nonblocking connection attempt.
Blocking
Waiting for explicitly delegated native work.
Dns
Waiting for a delegated hostname lookup.
FileIo
Waiting for delegated filesystem work.
Trait Implementations§
Source§impl Clone for SuspensionReason
impl Clone for SuspensionReason
impl Copy for SuspensionReason
Source§impl Debug for SuspensionReason
impl Debug for SuspensionReason
impl Eq for SuspensionReason
Source§impl PartialEq for SuspensionReason
impl PartialEq for SuspensionReason
impl StructuralPartialEq for SuspensionReason
Auto Trait Implementations§
impl Forget for SuspensionReason
impl Freeze for SuspensionReason
impl RefUnwindSafe for SuspensionReason
impl Send for SuspensionReason
impl Sync for SuspensionReason
impl Unpin for SuspensionReason
impl UnsafeUnpin for SuspensionReason
impl UnwindSafe for SuspensionReason
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