pub struct VfsConfig {
pub page_budget: Arc<PageBudget>,
pub page_cache_mode: SqliteVfsPageCacheMode,
pub staging_cache_ttl_ms: u64,
pub max_pages_per_stage: usize,
pub idle_release_ms: u64,
pub max_commit_dirty_pages: usize,
}Fields§
§page_budget: Arc<PageBudget>The process-wide budget this database’s page buffers share. A database opened on a worker pool uses the pool’s budget.
page_cache_mode: SqliteVfsPageCacheMode§staging_cache_ttl_ms: u64§max_pages_per_stage: usize§idle_release_ms: u64Idle time after which the worker releases this database’s caches. Zero disables.
max_commit_dirty_pages: usizeThe most pages one transaction may change. Values above Depot’s own commit cap,
sqlite_types::MAX_COMMIT_DIRTY_PAGES, are clamped to it.
Implementations§
Source§impl VfsConfig
impl VfsConfig
Sourcepub fn commit_page_cap(&self) -> usize
pub fn commit_page_cap(&self) -> usize
The most pages one transaction may change, never above Depot’s commit cap.
pub fn from_optimization_flags(flags: SqliteOptimizationFlags) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for VfsConfig
impl !UnwindSafe for VfsConfig
impl Freeze for VfsConfig
impl Send for VfsConfig
impl Sync for VfsConfig
impl Unpin for VfsConfig
impl UnsafeUnpin for VfsConfig
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