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
pub fn find_node_by_name(
&mut self,
node_name: String,
key: Option<String>
) -> Option<&mut NodeNetworkItem>
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
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 !=
.
Auto Trait Implementations
impl RefUnwindSafe for NodeNetwork
impl Send for NodeNetwork
impl Sync for NodeNetwork
impl Unpin for NodeNetwork
impl UnwindSafe for NodeNetwork
Blanket Implementations
Mutably borrows from an owned value. Read more