pub trait Node<N>: NodeTypesWithEngine + Clonewhere
N: FullNodeTypes,{
type ComponentsBuilder: NodeComponentsBuilder<N>;
type AddOns: NodeAddOns<NodeAdapter<N, <Self::ComponentsBuilder as NodeComponentsBuilder<N>>::Components>>;
// Required methods
fn components_builder(&self) -> Self::ComponentsBuilder;
fn add_ons(&self) -> Self::AddOns;
}
Expand description
A crate::Node
is a NodeTypesWithEngine
that comes with preconfigured components.
This can be used to configure the builder with a preset of components.
Required Associated Types§
Sourcetype ComponentsBuilder: NodeComponentsBuilder<N>
type ComponentsBuilder: NodeComponentsBuilder<N>
The type that builds the node’s components.
Sourcetype AddOns: NodeAddOns<NodeAdapter<N, <Self::ComponentsBuilder as NodeComponentsBuilder<N>>::Components>>
type AddOns: NodeAddOns<NodeAdapter<N, <Self::ComponentsBuilder as NodeComponentsBuilder<N>>::Components>>
Exposes the customizable node add-on types.
Required Methods§
Sourcefn components_builder(&self) -> Self::ComponentsBuilder
fn components_builder(&self) -> Self::ComponentsBuilder
Returns a NodeComponentsBuilder
for the node.
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.