pub trait NetworkBuilder<Node: FullNodeTypes, Pool: TransactionPool>: Send {
// Required method
fn build_network(
self,
ctx: &BuilderContext<Node>,
pool: Pool,
) -> impl Future<Output = Result<NetworkHandle>> + Send;
}
Expand description
A type that knows how to build the network implementation.
Required Methods§
sourcefn build_network(
self,
ctx: &BuilderContext<Node>,
pool: Pool,
) -> impl Future<Output = Result<NetworkHandle>> + Send
fn build_network( self, ctx: &BuilderContext<Node>, pool: Pool, ) -> impl Future<Output = Result<NetworkHandle>> + Send
Launches the network implementation and returns the handle to it.
Object Safety§
This trait is not object safe.