Skip to main content

Module load_store

Module load_store 

Source
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