MCPcopy Create free account
hub / github.com/comnik/declarative-dataflow / into

Method into

server/src/main.rs:172–187  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

170
171impl Into<server::Configuration> for Configuration {
172 fn into(self) -> server::Configuration {
173 match self.config {
174 None => server::Configuration::default(),
175 Some(ref path) => {
176 let mut config_file =
177 File::open(path).expect("failed to open server configuration file");
178
179 let mut contents = String::new();
180 config_file
181 .read_to_string(&mut contents)
182 .expect("failed to read configuration file");
183
184 serde_json::from_str(&contents).expect("failed to parse configuration")
185 }
186 }
187 }
188}
189
190impl Into<timely::Configuration> for Configuration {

Callers 10

sourceMethod · 0.80
sourceMethod · 0.80
sinkMethod · 0.80
transactMethod · 0.80
advance_tracesMethod · 0.80
selection_set_to_pathsFunction · 0.80
selection_set_to_pathsFunction · 0.80
implementMethod · 0.80
mainFunction · 0.80
stepMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected