Crate prefstore

Crate prefstore 

Source

Traits§

ems

Functions§

appendcustom
Appends a value to a custom file for the given application.
clearcustom
Deletes the custom file with the given name for the specified app.
clearpreference
Removes the preference with the given key for the given app_name.
getall
Returns a vector of tuples containing all the files in the specified app’s configuration directory.
getcustom
Retrieve the custom data from the specified custom file for the specified app, or save the default value and return it if the file does not exist.
getpreference
Retrieves the preference with the given key for the given app_name. If the preference does not exist, it returns the default value provided.
getpreferencenodefault
Retrieves the preference value associated with the specified key for the given app name. If the preference file does not exist, returns an empty string.
prefstore_directory
Returns the directory path for storing preferences for the given app.
savecustom
Save custom data to a file with the given app name, filename, and value.
savepreference
Saves a preference with the given key and value for the given app_name.