Trait fuel_core::service::genesis::NotifyCancel

source ·
pub trait NotifyCancel {
    // Required methods
    fn wait_until_cancelled<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn is_cancelled(&self) -> bool;
}

Required Methods§

source

fn wait_until_cancelled<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn is_cancelled(&self) -> bool

Implementations on Foreign Types§

source§

impl NotifyCancel for StateWatcher

source§

fn wait_until_cancelled<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn is_cancelled(&self) -> bool

source§

impl NotifyCancel for CancellationToken

source§

fn wait_until_cancelled<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source§

fn is_cancelled(&self) -> bool

Implementors§