Registers a new builder extension.
(&mut self, config: T::Config)
| 130 | |
| 131 | /// Registers a new builder extension. |
| 132 | pub fn install_ext<T: FromExtensionConfig + 'static>(&mut self, config: T::Config) { |
| 133 | self.extensions.push(Box::new(T::from_config(config))); |
| 134 | } |
| 135 | |
| 136 | /// Registers a callback to run after the node has started. |
| 137 | pub fn add_started_callback<F>(&mut self, callback: F) |