pub struct CacheConfig {
pub cache_dir: PathBuf,
pub max_contacts: usize,
pub merge_interval: Duration,
pub cleanup_interval: Duration,
pub quality_update_interval: Duration,
pub stale_threshold: Duration,
pub connectivity_check_interval: Duration,
pub connectivity_check_count: usize,
}
Expand description
Bootstrap cache configuration
Fields§
§cache_dir: PathBuf
Directory where cache files are stored
max_contacts: usize
Maximum number of contacts to keep in cache
merge_interval: Duration
Interval between cache merge operations
cleanup_interval: Duration
Interval between cache cleanup operations
quality_update_interval: Duration
Interval between quality score updates
stale_threshold: Duration
Age threshold for considering contacts stale
connectivity_check_interval: Duration
Interval between connectivity checks
connectivity_check_count: usize
Number of peers to check connectivity with
Trait Implementations§
Source§impl Clone for CacheConfig
impl Clone for CacheConfig
Source§fn clone(&self) -> CacheConfig
fn clone(&self) -> CacheConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CacheConfig
impl Debug for CacheConfig
Source§impl Default for CacheConfig
impl Default for CacheConfig
Source§impl<'de> Deserialize<'de> for CacheConfig
impl<'de> Deserialize<'de> for CacheConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CacheConfig
impl RefUnwindSafe for CacheConfig
impl Send for CacheConfig
impl Sync for CacheConfig
impl Unpin for CacheConfig
impl UnwindSafe for CacheConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more