pub struct FileTreeStoreLimits {
pub max_nodes: usize,
pub max_payload_bytes: usize,
pub collapsed_ttl: Duration,
}Expand description
Session cache policy. Cache maintenance is explicit and never performs
hidden I/O: coordinators call FileTreeStore::evict_expired at the
instant returned by FileTreeStore::next_cache_maintenance_due.
Limits are soft eviction triggers and are not validated or enforced during insertion. Zero node/byte limits and a zero TTL are valid and request immediate eligible eviction.
§Examples
use ailloli_ui_fs::{FileTreeStoreLimits, DEFAULT_FILE_TREE_MAX_NODES};
assert_eq!(FileTreeStoreLimits::default().max_nodes, DEFAULT_FILE_TREE_MAX_NODES);Fields§
§max_nodes: usizeSoft maximum number of retained nodes, including the root.
max_payload_bytes: usizeSoft maximum estimated payload in bytes.
collapsed_ttl: DurationRetention time after a directory becomes collapsed.
Trait Implementations§
Source§impl Clone for FileTreeStoreLimits
impl Clone for FileTreeStoreLimits
Source§fn clone(&self) -> FileTreeStoreLimits
fn clone(&self) -> FileTreeStoreLimits
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FileTreeStoreLimits
impl Debug for FileTreeStoreLimits
Source§impl Default for FileTreeStoreLimits
impl Default for FileTreeStoreLimits
Source§impl PartialEq for FileTreeStoreLimits
impl PartialEq for FileTreeStoreLimits
impl Copy for FileTreeStoreLimits
impl Eq for FileTreeStoreLimits
impl StructuralPartialEq for FileTreeStoreLimits
Auto Trait Implementations§
impl Freeze for FileTreeStoreLimits
impl RefUnwindSafe for FileTreeStoreLimits
impl Send for FileTreeStoreLimits
impl Sync for FileTreeStoreLimits
impl Unpin for FileTreeStoreLimits
impl UnwindSafe for FileTreeStoreLimits
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