pub trait LaunchNode<Target>: Send {
type Node;
type Future: IntoFuture<Output = Result<Self::Node>, IntoFuture: Send>;
// Required method
fn launch_node(self, target: Target) -> Self::Future;
}
Expand description
A general purpose trait that launches a new node of any kind.
Acts as a node factory that targets a certain node configuration and returns a handle to the node.
This is essentially the launch logic for a node.
See also EngineNodeLauncher
and
NodeBuilderWithComponents::launch_with
Required Associated Types§
Required Methods§
Sourcefn launch_node(self, target: Target) -> Self::Future
fn launch_node(self, target: Target) -> Self::Future
Create and return a new node asynchronously.