Struct fbp::fbp_node_network::NodeNetwork[][src]

pub struct NodeNetwork {
    pub node_network: HashMap<String, Vec<NodeNetworkItem>>,
}
Expand description

NodeNetwork

The NodeNetwork type represents the network of nodes. It is just a HashMap that is keyed my a string that represents a grouping of nodes. This grouping is not required by will allow for having various groups of downstream nodes receive different messages from another group. While this grouping is optional, it does provide for increased flexibility.

The way that this would work is that a node’s implementation of the FBPNodeTrait::process_message would need to determine if there were a separate grouping of nodes for a specific need and only send specific messages to that group. A made up example might be that a separate logging group exists and the node would performs its ‘normal’ processing and then send that result on to the ‘normal’ outputs, while it could also send logging information to a logging group.

The value of the HashMap is a Vector of NodeNetworkItems that represent an FBP Node that will be constructed and placed into the same position as the NodeNetworkItem in the NodeNetwork.

Fields

node_network: HashMap<String, Vec<NodeNetworkItem>>

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

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 resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.