pub trait LaunchNode<Target>: Send {
type Node;
type Future: IntoFuture<Output = Result<Self::Node, Report>>
where <Self::Future as IntoFuture>::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§
Sourcetype Future: IntoFuture<Output = Result<Self::Node, Report>>
where
<Self::Future as IntoFuture>::IntoFuture: Send
type Future: IntoFuture<Output = Result<Self::Node, Report>> where <Self::Future as IntoFuture>::IntoFuture: Send
The future type that is returned.
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.