Skip to main content

Module cancel

Module cancel 

Source
Expand description

Cancellable futures.

Re-exportsยง

use std::pin::Pin; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use std::sync::Mutex; ๐Ÿ”’
use std::task::Context; ๐Ÿ”’
use std::task::Poll; ๐Ÿ”’
use std::task::Waker; ๐Ÿ”’
use futures::Future; ๐Ÿ”’
use pin_project::pin_project; ๐Ÿ”’

Structsยง

Cancel ๐Ÿ”’
A cancellable future type, loosely influenced by RemoteHandle.
CancelHandle ๐Ÿ”’
An object that can be used to cancel a future.
Cancelled ๐Ÿ”’
An error returned from a Cancel future if it is cancelled.
Inner ๐Ÿ”’
Inner state shared between Cancel and the `CancelHandle.

Enumsยง

CannotCancel ๐Ÿ”’
An error returned when we cannot cancel a future.
Status ๐Ÿ”’
Possible status of Cancel future.