Skip to main content

Module fs

Module fs 

Source
Expand description

Filesystem + JSON implementation of StateMgr.

Re-exportsยง

use crate::err::Action; ๐Ÿ”’
use crate::err::ErrorSource; ๐Ÿ”’
use crate::err::Resource; ๐Ÿ”’
use crate::load_store; ๐Ÿ”’
use crate::Error; ๐Ÿ”’
use crate::LockStatus; ๐Ÿ”’
use crate::Result; ๐Ÿ”’
use crate::StateMgr; ๐Ÿ”’
use fs_mistrust::CheckedDir; ๐Ÿ”’
use fs_mistrust::anon_home::PathExt as _; ๐Ÿ”’
use fslock_guard::LockFileGuard; ๐Ÿ”’
use futures::FutureExt; ๐Ÿ”’
use oneshot_fused_workaround as oneshot; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use serde::Serialize; ๐Ÿ”’
use serde::de::DeserializeOwned; ๐Ÿ”’
use std::path::Path; ๐Ÿ”’
use std::path::PathBuf; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use std::sync::Mutex; ๐Ÿ”’
use tor_error::warn_report; ๐Ÿ”’
use tracing::info; ๐Ÿ”’
use web_time_compat::SystemTime; ๐Ÿ”’
use web_time_compat::SystemTimeExt; ๐Ÿ”’

Modulesยง

clean ๐Ÿ”’
Code to remove obsolete and extraneous files from a filesystem-based state directory.

Structsยง

FsStateMgr
Implementation of StateMgr that stores state as JSON files on disk.
FsStateMgrInner ๐Ÿ”’
Inner reference-counted object, used by FsStateMgr.