Registers a callback to run after the node has started.
(&mut self, callback: F)
| 143 | |
| 144 | /// Registers a callback to run after the node has started. |
| 145 | pub fn add_started_callback<F>(&mut self, callback: F) |
| 146 | where |
| 147 | F: FnOnce() -> Result<()> + Send + 'static, |
| 148 | { |
| 149 | self.started_callbacks.push(Box::new(callback)); |
| 150 | } |
| 151 | |
| 152 | /// Applies all Base-specific wiring to the supplied builder, launches the node, and waits for |
| 153 | /// shutdown. |
no test coverage detected