pub trait Token: Send + Sync { // Required method fn check(&self) -> Result<(), Cancelled>; }
A trait for an arbitrary cancellation token. Use (), if you don’t have any cancellation token.
()
Returns Cancelled, if the operation has been cancelled.