pub trait UpdateRuntime {
    // Required method
    fn update_runtime<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<()>> + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

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

Updates the runtime and metadata of the api via node query. Ideally, this function is called if a substrate update runtime event is encountered.

Implementors§

source§

impl<T, Client> UpdateRuntime for Api<T, Client>
where T: Config, Client: Request,