Struct fbp::fbp_node_network::NetworkConfiguration[][src]

pub struct NetworkConfiguration { /* fields omitted */ }
Expand description

NetworkConfiguration

The NetworkConfiguration struct is a grouping of all of the nodes in a network of nodes. It does not describe the actual network but does allow for treating the network as a unit instead of a set of disparate nodes.

This struct can be used in two ways. The first is to create a network from a JSON representation of the network. This is done by using the NodeNetworkItem to create all of the nodes in the network. The call to NodeNetworkItem::create_node returns an Option. This can be used to work with the network as a whole.

The second way to use the NetworkConfiguration struct is to create an empty NetworkConfiguration struct and calling add_node on the FBPNodeContext of your network. This will allow for doing the same thing as calling NodeNetworkItem::create_node in that the network of nodes can now be addressed as a unit.

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.