Skip to main content

InterruptResolver

Trait InterruptResolver 

Source
pub trait InterruptResolver: Send + Sync {
    // Required method
    fn resolve<'life0, 'life1, 'async_trait>(
        &'life0 self,
        interrupt: &'life1 Interrupt,
    ) -> Pin<Box<dyn Future<Output = ResolveResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Unified interrupt resolver: handles interrupts from all external sources.

Required Methods§

Source

fn resolve<'life0, 'life1, 'async_trait>( &'life0 self, interrupt: &'life1 Interrupt, ) -> Pin<Box<dyn Future<Output = ResolveResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Resolves an interrupt, returning the value to resume with.

Implementors§