pub trait Interruptible {
fn interrupt_notifier(&self) -> &Notify;
fn interrupt(&self) { ... }
fn check_for_interrupt<'life0, 'async_trait, E: From<InterruptError>>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<(), E>> + Send + 'async_trait>>
where
E: 'async_trait,
'life0: 'async_trait,
Self: Sync + 'async_trait,
{ ... }
fn interruptible<'a, 'life0, 'async_trait, T, E: From<InterruptError>>(
&'life0 self,
f: impl Future<Output = Result<T, E>> + Send + 'a
) -> Pin<Box<dyn Future<Output = Result<T, E>> + Send + 'async_trait>>
where
'a: 'async_trait,
T: 'async_trait,
E: 'async_trait,
'life0: 'async_trait,
Self: Sync + 'async_trait,
{ ... }
}