pub struct FileQuerySnapshotReader { /* private fields */ }Expand description
A long-lived read-only SQLite sidecar for latency-critical native views. Network rounds stay serialized on the mutable core owner, while atomic query snapshots use this independent connection and therefore never queue behind HTTP/WebSocket latency.
Implementations§
Source§impl FileQuerySnapshotReader
impl FileQuerySnapshotReader
pub fn new(path: impl Into<String>) -> Self
pub fn query_snapshot( &mut self, sql: &str, params: &[Value], coverage: &[WindowCoverage], ) -> Result<QuerySnapshot, String>
Auto Trait Implementations§
impl !Freeze for FileQuerySnapshotReader
impl !RefUnwindSafe for FileQuerySnapshotReader
impl !Sync for FileQuerySnapshotReader
impl !UnwindSafe for FileQuerySnapshotReader
impl Send for FileQuerySnapshotReader
impl Unpin for FileQuerySnapshotReader
impl UnsafeUnpin for FileQuerySnapshotReader
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