Skip to main content

Crate sim_cancel

Crate sim_cancel 

Source
Expand description

Executor-neutral, explicitly owned cancellation for bounded work.

Structs§

Cancellation
Explicit cancellation authority and observer for one lifetime.
CancellationReason
The immutable explanation attached to the terminal transition.
CancellationWaiter
A race-safe future resolving to the immutable terminal reason.

Enums§

InvalidReason
Why construction of a cancellation reason failed.

Constants§

MAX_REASON_BYTES
Maximum UTF-8 byte length accepted for a cancellation reason.

Statics§

RECIPES
Embedded checked cookbook recipe tree.