Expand description
ยงtor-persist
Persistent data storage for use with Tor.
This crate is part of Arti, a project to implement Tor in Rust.
For now, users should construct storage objects directly with (for
example) FsStateMgr::from_path_and_mistrust(), but use them primarily via the
interfaces of the StateMgr trait.
License: MIT OR Apache-2.0
Re-exportsยง
pub use err::Error;pub use err::ErrorSource;pub use fs::FsStateMgr;pub use fs_mistrust_error_ext::FsMistrustErrorExt;pub use handle::DynStorageHandle;pub use handle::StorageHandle;pub use testing::TestingStateMgr;pub(crate) use Deserialize;๐pub(crate) use Deserialize;๐pub(crate) use Serialize;๐pub(crate) use Serialize;๐pub(crate) use de::DeserializeOwned;๐pub(crate) use std::sync::Arc;๐
Modulesยง
- err ๐
- Error types for `tor-persist.
- fs ๐
- Filesystem + JSON implementation of StateMgr.
- fs_
mistrust_ ๐error_ ext FsMistrustErrorExt- handle ๐
- Object-safe, type-safe wrappers for
StateMgr. - hsnickname
HsNicknamemodule itself is private, butHsNicknameetc. are re-exported- load_
store ๐ - Helper module for loading and storing via serde
- slug
- โSlugsโ used as part of on-disk filenames and other similar purposes
- state_
dir - State helper utility
- testing ๐
- Testing-only StateMgr that stores values in a hash table.
Enumsยง
- Futureproof
- A wrapper type for types whose representation may change in future versions of Arti.
- Json
Value - Represents any valid JSON value.
- Lock
Status - A possible outcome from calling
StateMgr::try_lock()
Traitsยง
- State
Mgr - An object that can manage persistent state.
Type Aliasesยง
- Result ๐
- Wrapper type for Results returned from this crate.