Expand description
Helper module for loading and storing via serde
Utilities to load or store a serde-able object, in JSON format, to/from a disk file at a caller-specified filename.
The caller is supposed to do any necessary locking.
The entrypoints are methods on [Target],
which the caller is supposed to construct.
Re-exportsยง
use std::path::Path;๐use fs_mistrust::CheckedDir;๐use serde::Serialize;๐use serde::Serialize;๐use serde::de::DeserializeOwned;๐use tor_basic_utils::PathExt;๐use tor_error::ErrorReport as _;๐use tracing::trace;๐use crate::err::ErrorSource;๐
Structsยง
- Target ๐
- Common arguments to load/store operations