MCPcopy Create free account
hub / github.com/BillyDM/Firewheel / connect

Method connect

examples/visual_node_graph/src/system.rs:258–269  ·  view source on GitHub ↗
(
        &mut self,
        src_node: NodeID,
        dst_node: NodeID,
        src_port: u32,
        dst_port: u32,
    )

Source from the content-addressed store, hash-verified

256 }
257
258 pub fn connect(
259 &mut self,
260 src_node: NodeID,
261 dst_node: NodeID,
262 src_port: u32,
263 dst_port: u32,
264 ) -> Result<(), AddEdgeError> {
265 self.cx
266 .connect(src_node, dst_node, &[(src_port, dst_port)], true)?;
267
268 Ok(())
269 }
270
271 pub fn disconnect(&mut self, src_node: NodeID, dst_node: NodeID, src_port: u32, dst_port: u32) {
272 self.cx

Callers 9

newMethod · 0.45
mainFunction · 0.45
newMethod · 0.45
newMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
newMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected