pub fn init(config: PropertyConfig)Expand description
Initialize system properties with flexible configuration options.
§Arguments
config- Can be:None- Use default directoriesSome(PathBuf)- Set only properties directory (backward compatibility)Some(PropertyConfig)- Full configuration
§Examples
use rsproperties::{init, PropertyConfig};
use std::path::PathBuf;
// Set only properties directory (backward compatible)
init(PropertyConfig::from(PathBuf::from("/custom/properties")));
// Full configuration
let config = PropertyConfig {
properties_dir: Some(PathBuf::from("/custom/properties")),
socket_dir: Some(PathBuf::from("/custom/socket")),
};
init(config);