pub struct OpfsSAHPoolCfg {
pub vfs_name: String,
pub directory: String,
pub clear_on_init: bool,
pub initial_capacity: u32,
}
Expand description
OpfsSAHPool
options
Fields§
§vfs_name: String
The SQLite VFS name under which this pool’s VFS is registered.
directory: String
Specifies the OPFS directory name in which to store metadata for the vfs_name
clear_on_init: bool
If truthy, contents and filename mapping are removed from each SAH as it is acquired during initalization of the VFS, leaving the VFS’s storage in a pristine state. Use this only for databases which need not survive a page reload.
initial_capacity: u32
Specifies the default capacity of the VFS, i.e. the number of files it may contain.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpfsSAHPoolCfg
impl RefUnwindSafe for OpfsSAHPoolCfg
impl Send for OpfsSAHPoolCfg
impl Sync for OpfsSAHPoolCfg
impl Unpin for OpfsSAHPoolCfg
impl UnwindSafe for OpfsSAHPoolCfg
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