Method
new
(_: String, args: &Table)
Source from the content-addressed store, hash-verified
| 76 | |
| 77 | impl 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
Tested by
no test coverage detected