Skip to main content

config

Function config 

Source
pub fn config(layout: impl Layout<EndpointId> + Clone) -> NodeConfig
Expand description

Returns the NodeConfig of a node on layout, with its policy().

The config’s layout is layout too, so Node::claim_path grants a peer the paths layout says it owns.