pub struct OpfsSAHPoolCfgBuilder(/* private fields */);
Expand description
Build OpfsSAHPoolCfg
Implementations§
Source§impl OpfsSAHPoolCfgBuilder
impl OpfsSAHPoolCfgBuilder
pub fn new() -> Self
Sourcepub fn vfs_name(self, name: &str) -> Self
pub fn vfs_name(self, name: &str) -> Self
The SQLite VFS name under which this pool’s VFS is registered.
Sourcepub fn directory(self, directory: &str) -> Self
pub fn directory(self, directory: &str) -> Self
Specifies the OPFS directory name in which to store metadata for the vfs_name
Sourcepub fn clear_on_init(self, set: bool) -> Self
pub fn clear_on_init(self, set: bool) -> Self
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.
Sourcepub fn initial_capacity(self, cap: u32) -> Self
pub fn initial_capacity(self, cap: u32) -> Self
Specifies the default capacity of the VFS, i.e. the number of files it may contain.
Sourcepub fn build(self) -> OpfsSAHPoolCfg
pub fn build(self) -> OpfsSAHPoolCfg
Build OpfsSAHPoolCfg
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpfsSAHPoolCfgBuilder
impl RefUnwindSafe for OpfsSAHPoolCfgBuilder
impl Send for OpfsSAHPoolCfgBuilder
impl Sync for OpfsSAHPoolCfgBuilder
impl Unpin for OpfsSAHPoolCfgBuilder
impl UnwindSafe for OpfsSAHPoolCfgBuilder
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