pub struct Node {
pub name: NodeName,
pub in_ports: HashMap<PortName, Port>,
pub out_ports: HashMap<PortName, Port>,
pub in_salvo_conditions: HashMap<SalvoConditionName, SalvoCondition>,
pub out_salvo_conditions: HashMap<SalvoConditionName, SalvoCondition>,
}Expand description
A processing unit in the graph with input and output ports.
Nodes are the fundamental building blocks of a flow-based network. They have:
- Input ports where packets arrive
- Output ports where packets are sent
- Input salvo conditions that define when arriving packets trigger an epoch
- Output salvo conditions that define when output packets can be sent
Fields§
§name: NodeNameThe unique name of this node.
in_ports: HashMap<PortName, Port>Input ports where packets can arrive.
out_ports: HashMap<PortName, Port>Output ports where packets can be sent.
in_salvo_conditions: HashMap<SalvoConditionName, SalvoCondition>Conditions that trigger new epochs when satisfied by packets at input ports.
out_salvo_conditions: HashMap<SalvoConditionName, SalvoCondition>Conditions that must be satisfied to send packets from output ports.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnwindSafe for Node
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more