pub trait NodeManager:
Send
+ Sync
+ Debug
+ Any {
// Required methods
fn start(
&mut self,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + '_>>;
fn stop(
&mut self,
) -> Pin<Box<dyn Future<Output = Result<(), TransportError>> + Send + '_>>;
fn rpc_port(&self) -> u16;
fn as_any(&self) -> &dyn Any;
}
Expand description
Trait for managing a Bitcoin node’s lifecycle