MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / Node

Interface Node

flow-rs/src/node/mod.rs:44–49  ·  view source on GitHub ↗

Trait for interactiving with graph, which can be derived by `#[derive(Node)]`.

Source from the content-addressed store, hash-verified

42crate::collect!(String, NodeSlice);
43/// Trait for interactiving with graph, which can be derived by `#[derive(Node)]`.
44pub trait Node {
45 fn set_port(&mut self, port_name: &str, tag: Option<u64>, channel: &ChannelStorage);
46 fn set_port_dynamic(&mut self, port_name: &str, config: DynPortsConfig);
47 fn close(&mut self);
48 fn is_allinp_closed(&self) -> bool;
49}
50
51/// Trait for interactiving with schedule, which can be derived by `#[derive(Actor)]`.
52pub trait Actor: Node + Send + 'static {

Callers

nothing calls this directly

Implementers 3

node.rsflow-rs/src/loader/python/node.rs
subgraph.rsflow-rs/src/graph/subgraph.rs
shared.rsflow-rs/src/node/shared.rs

Calls

no outgoing calls

Tested by

no test coverage detected