pub trait LaunchNode<Target> {
type Node;
// Required method
fn launch_node(
self,
target: Target,
) -> impl Future<Output = Result<Self::Node, Report>>;
}
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 DefaultNodeLauncher
and NodeBuilderWithComponents::launch_with
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.