MCPcopy Index your code
hub / github.com/RizeCrime/linuxblaster_control / save_profile

Method save_profile

src/lib.rs:218–226  ·  view source on GitHub ↗
(&self, path: PathBuf)

Source from the content-addressed store, hash-verified

216 }
217
218 pub fn save_profile(&self, path: PathBuf) -> Result<(), Box<dyn Error>> {
219 // save the current state of the features to a profile
220
221 let json = serde_json::to_string_pretty(&self)?;
222 std::fs::write(&path, json)?;
223 info!("Saved Profile to {:?}", path);
224
225 Ok(())
226 }
227
228 pub fn apply_profile(&self, path: PathBuf) -> Result<(), Box<dyn Error>> {
229 // apply a profile to the features

Callers 1

updateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected