Skip to main content

NodeFactory

Type Alias NodeFactory 

Source
pub type NodeFactory<S> = Box<dyn Fn(&NodeDef, &BspContext) -> Result<Box<dyn BspNode<S>>, BspError> + Send + Sync>;
Expand description

Factory building a node instance from its definition (config blob included) and the dependency-injection context.

Aliased Typeยง

pub struct NodeFactory<S>(/* private fields */);