pub struct IndexedDBVFS { /* private fields */ }Expand description
Custom SQLite VFS implementation that uses IndexedDB for storage
Implementations§
Source§impl IndexedDBVFS
impl IndexedDBVFS
pub async fn new(db_name: &str) -> Result<Self, DatabaseError>
pub fn register(&self, vfs_name: &str) -> Result<(), DatabaseError>
Sourcepub fn get_sync_count(&self) -> u64
pub fn get_sync_count(&self) -> u64
Metrics: total syncs (native only)
Sourcepub fn get_timer_sync_count(&self) -> u64
pub fn get_timer_sync_count(&self) -> u64
Metrics: timer-based syncs (native only)
Sourcepub fn get_debounce_sync_count(&self) -> u64
pub fn get_debounce_sync_count(&self) -> u64
Metrics: debounce-based syncs (native only)
Sourcepub fn get_last_sync_duration_ms(&self) -> u64
pub fn get_last_sync_duration_ms(&self) -> u64
Metrics: last sync duration in ms (native only)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IndexedDBVFS
impl RefUnwindSafe for IndexedDBVFS
impl Send for IndexedDBVFS
impl Sync for IndexedDBVFS
impl Unpin for IndexedDBVFS
impl UnwindSafe for IndexedDBVFS
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