Function miniconf::update[][src]

pub fn update<T: Miniconf>(
    settings: &mut T,
    path: &str,
    data: &[u8]
) -> Result<(), Error>
Expand description

Convenience function to update settings directly from a string path and data.

Note

When using prefixes on the path, it is often simpler to call Settings::string_set(path.peekable(), data) directly.

Args

  • settings - The settings to update
  • path - The path to update within settings.
  • data - The serialized data making up the contents of the configured value.

Returns

The result of the configuration operation.