Expand description
Synchronization primitives
Structsยง
- CancellationToken 
- A token which can be used to signal a cancellation request to one or more tasks.
- DropGuard 
- A wrapper for cancellation token which automatically cancels
it on drop. It is created using drop_guardmethod on theCancellationToken.
- DropGuard Ref 
- A wrapper for cancellation token which automatically cancels
it on drop. It is created using drop_guard_refmethod on theCancellationToken.
- PollSemaphore 
- A wrapper around Semaphorethat provides apoll_acquiremethod.
- PollSend Error 
- Error returned by the PollSenderwhen the channel is closed.
- PollSender 
- A wrapper around mpsc::Senderthat can be polled.
- ReusableBoxFuture 
- A reusable Pin<Box<dyn Future<Output = T> + Send + 'a>>.
- WaitForCancellation Future 
- A Future that is resolved once the corresponding CancellationTokenis cancelled.
- WaitForCancellation Future Owned 
- A Future that is resolved once the corresponding CancellationTokenis cancelled.