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

Method new

flow-plugins/src/bytes_server.rs:78–88  ·  view source on GitHub ↗
(_: String, args: &Table)

Source from the content-addressed store, hash-verified

76
77impl BytesServer {
78 fn new(_: String, args: &Table) -> BytesServer {
79 let _ = args.get("response").map(|resp| resp.as_str()).flatten();
80 BytesServer {
81 port: args["port"]
82 .as_integer()
83 .expect("expect args[port] in node[BytesServer]")
84 .to_owned() as u16,
85 inp: Default::default(),
86 out: Default::default(),
87 }
88 }
89
90 async fn initialize(&mut self, _: ResourceCollection) {}
91 async fn finalize(&mut self) {}

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected