pub trait NextEventIsCancelSafe { }Expand description
Types that implement Source and are allowed to prematurely drop the next_event future.
Code that uses something like tokio’s [select!] macro may cancel the call to next_event.
This cancellation is only “safe” if the Source is marked by this trait.
When using BoxedSource try using BoxedSourceCancelSafe instead if this trait is required. See Source::boxed_cancel_safe.