Registers a callback to run after the node has started.
(&mut self, callback: F)
| 135 | |
| 136 | /// Registers a callback to run after the node has started. |
| 137 | pub fn add_started_callback<F>(&mut self, callback: F) |
| 138 | where |
| 139 | F: FnOnce() -> Result<()> + Send + 'static, |
| 140 | { |
| 141 | self.started_callbacks.push(Box::new(callback)); |
| 142 | } |
| 143 | |
| 144 | /// Applies all Base-specific wiring to the supplied builder, launches the node, and waits for |
| 145 | /// shutdown. |
no test coverage detected